sql语句:

select column1,column2=stuff((select ','+column2 from table1 where column1=t1.column1 for xml path('')),1,1,'')
from table1 t1
group by column1

posted on 2012-08-17 15:57  xalyf  阅读(145)  评论(0编辑  收藏  举报