日期:2014-05-17 浏览次数:20548 次
select col1, stuff((select ','+col2 from tb where col1 = t.col1 for xml path('')),1,1,'') as col2 from tb t group by col1 --sql2005 try !