Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个包含此数据的一列的表
Data 'a' 'b' 'c' 'd' 'e' 'f'
如何将一个 varchar 中的数据列数据与 cte 组合起来?
result : 'abcdef'
你可以很简单地使用
SELECT '' + [Data] FROM Table1 FOR XML PATH ('')