SQL Server把某个字段的数据用一条语句转换成字符串 |
例如数据 列Name 复制代码 代码如下: name a b c d 最后的结果 复制代码 代码如下: a*b*c*d* declare @test table( namevarchar(10)) 输出结果: 复制代码 代码如下: (4 row(s) affected) name -------------------------------------------------- a*b*c*d* (1 row(s) affected) |