SELECT (SELECT ac.ColName+‘,‘ FROM T1 AS ac FOR XML PATH(‘‘)) AS ColName, (SELECT ac.colTitle+‘,‘ FROM T1 AS ac FOR XML PATH(‘‘)) AS colTitle
行转列(FOR XML PATH),布布扣,bubuko.com
时间: 2024-10-17 06:50:29
SELECT (SELECT ac.ColName+‘,‘ FROM T1 AS ac FOR XML PATH(‘‘)) AS ColName, (SELECT ac.colTitle+‘,‘ FROM T1 AS ac FOR XML PATH(‘‘)) AS colTitle
行转列(FOR XML PATH),布布扣,bubuko.com