关于一个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的是可以的
[解决办法]
发布时间: 2012-03-20 14:01:10 作者: rapoo
关于一个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的是可以的
[解决办法]