首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > PB >

关于一个sql文的有关问题

2012-03-20 
关于一个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的參數是可以的

热点排行