sql查询的两个问题,{fristitem}.{columns}不能合起来用,和select from db where codes in (@str)也不行

BUG反馈 · 492 次浏览
g600832 创建于 2023-06-27 19:28

1、{fristitem}.{columns}不能合起来用,列名是个变量,不能用,有其它解决方案吗?

2、select from db where codes in (@str)也不行,{str}="'600111','600110','000838'"


回复内容
CL 2023-06-27 21:20
#1

解决了不?

如果使用插值,需要确保插值以后得到的sql是合法的,可以通过调试运行查看。

回复主贴