一个表中一个字段的多行合并方法

select 值= stuff((select ','+ 字段 from 表 where a.字段=字段 for xml path('')),1,1,'')   from 表 a 
posted @ 2009-07-09 10:25  鱼肚白  阅读(281)  评论(0编辑  收藏  举报