这样子是不行的,我想要的是select * from biao where in (1,2,4,5)
但是存储过程的变量默认是带单引号的,怎么办,,,如何解决,,急,,,
...全文
442打赏收藏
存储过程传代单引号参数 在线等,马上给分, 急,,,
存储过程传代单引号参数 在线等,马上给分, @iid在程序里的值是 1,2,4,5 存储过程 select * from biao where id in (@iid) 这样执行了就变为select * from biao where in ('1,2,4,5') 这样子是不行的,我想要的是select * from biao where in (1,2,4,5) 但是存储过程的变量默认是带单引号的,怎么办,,,如何解决,,急,,,