时间:2021-07-01 10:21:17 帮助过:9人阅读
SELECT vcaa, vcbb, ISNULL(( SELECT vcCN + ‘,‘
FROM TableB b
WHERE a.vcaa= b.vcaa
FOR
XML PATH(‘‘) ), ‘‘) AS vcNameList
FROM TableA a
Sql 列转行
标签:XML rom select name sql lis from null for