关于一个sql文的有关问题

关于一个sql文的问题我在pb中写sql,select * from A where A.name not in (sname)其中sname我定义的是一个

关于一个sql文的问题
我在pb中写sql,select * from A where A.name not in (sname)
其中sname我定义的是一个数组,string sname[] = {'xx','bb'}
为什么这样检索不出数据,我直接用select * from A where A.name not in ('xx','bb')是能检索出数据的
是不能这么写嘛?

[解决办法]
你是直接寫SQL還是在DW中使用?數組作為DW的參數是可以的
[解决办法]

探讨

你是直接寫SQL還是在DW中使用?數組作為DW的參數是可以的