摘要: sqlserver字符串拆分(split)方法汇总--方法0:动态SQL法declare @s varchar(100),@sql varchar(1000)set @s='1,2,3,4,5,6,7,8,9,10'set @sql='select col='''+ replace(@s,',',''' union all select ''')+''''PRINT @sqlexec (@sql)if exists (select * from dbo 阅读全文
posted @ 2012-11-29 17:52 男儿当自强IT 阅读(392) 评论(0) 推荐(0) 编辑