日期:2014-05-17 浏览次数:20479 次
Where FNumber In ('02.0012', '02.0071', '07.0026')
------解决方案--------------------
动态SQL实现,
declare @pl nvarchar(200),@sql nvarchar(2000) select @pl='02.0012, 02.0071, 07.0026' select @sql='select * from [表名] where FNumber In(''' +replace(@pl,', ',''', ''')+''')' exec(@sql)