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  阅读(153)  评论(0)    收藏  举报