SQL脚本:合并查询出来的内容成字符串
合并查询出来的内容成字符串:
update b
set b.Allname=stuff((select ','+name as [text()] from a where e=b.e for XML path('')),1,1,'')
合并查询出来的内容成字符串:
update b
set b.Allname=stuff((select ','+name as [text()] from a where e=b.e for XML path('')),1,1,'')