0
我想在下面選擇查詢VM.Address和VM.City之間添加逗號SQL服務器:添加逗號SELECT語句
DECLARE @Address NVARCHAR(MAX);
set @Address = ' SELECT [Address] = CONCAT(VM.Address,' ', VM.City)
FROM [dbo].[VendorMaster] VM
WHERE IsActive = 1 AND VendorID = 6
ORDER BY VendorName'
EXECUTE SP_EXECUTESQL @Address
謝謝。有效 – user2115618