摘要: declare @s varchar(100) set @s='1,2,3' --法一: select * from tb where charindex(','+ltrim(id)+',',','+@s+',')>0 --法二: exec('select * from tb where id in ('+@s+')') 阅读全文
posted @ 2017-10-08 22:09 布洛克菲勒 阅读(2343) 评论(0) 推荐(0) 编辑