SQL脚本:合并查询出来的内容成字符串

 

合并查询出来的内容成字符串:

update b
set    b.Allname=stuff((select ','+name as [text()] from a where e=b.e for XML path('')),1,1,'')

posted @ 2012-11-29 17:28  风中娉婷  阅读(105)  评论(0)    收藏  举报