标签:XML rom select name sql lis from null for
SELECT vcaa, vcbb, ISNULL(( SELECT vcCN + ‘,‘
FROM TableB b
WHERE a.vcaa= b.vcaa
FOR
XML PATH(‘‘) ), ‘‘) AS vcNameList
FROM TableA a
标签:XML rom select name sql lis from null for
原文地址:http://www.cnblogs.com/ghelement/p/6656590.html