摘要: 1、declare @sql as varchar(8000)select @sql=''Select @sql=@sql+UserName【字段名】+','from dbo.b_NewGrant【表名】select @sql2、declare @mytable table (Col1 varchar(10))insert into @mytable values ('AA'),('BB'),('CC') declare @Colstring varchar(50)select @Colstring = isnul 阅读全文
posted @ 2012-04-19 15:54 wyixin 阅读(117) 评论(0) 推荐(0) 编辑