declare @s nvarchar(1000)--字符 select @s=isnull(@s+',','')+rtrim(字段2) ---由为是int要转换一下 from A where 字段1=1 print @s--打印输出结果 select @s--显示
27,580
社区成员
68,556
社区内容
加载中
试试用AI创作助手写篇文章吧