日期:2014-05-17 浏览次数:20570 次
select distinct id,
areaid=stuff((select '
------解决方案--------------------
'+areaid from tb where a.id=id for xml path('')),1,1,''),
name=stuff((select '
------解决方案--------------------
'+name from tb where a.id=id for xml path('')),1,1,'')
from tb a