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-12-22 17:08:01
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