想把數據表某一欄位值,全串連起來,你可以使用一個方法。COALESCE: DECLARE @list NVARCHAR(MAX) SELECT @list = COALESCE(@list + ',','') + [Transportation_CN] FROM [dbo].[Transportat ...
想把數據表某一欄位值,全串連起來,你可以使用一個方法。COALESCE:
DECLARE @list NVARCHAR(MAX) SELECT @list = COALESCE(@list + ',','') + [Transportation_CN] FROM [dbo].[Transportation] SELECT @listSource Code