concat
类似于以下示例的集合分隔符上的字符串是否存在 t-sql 函数?
DECLARE @value1 VARCHAR(20) = 'a'
DECLARE @value2 VARCHAR(20) = 'b'
DECLARE @value3 VARCHAR(20) = 'c'
DECLARE @value4 VARCHAR(20) = 'd'
SET @concatString = Join(",", @value1, @value2, @value3, @value4)
PRINT @concatString
我想要这样的结果
-- prints "a,b,c,d"