就是对一个字段做in条件查询,例:
declare @sql nvarchar(max)
set @sql='select * from table where id in(@IDs)'
exec(@sql)除了这种在存储过程中拼sql的写法还有没其他方法?求教了!