0
我有一個查詢更新表記錄。查詢更新來自兩個不同表的記錄
UPDATE #TEMP
SET [fld_LastName] = CustomerProfile.fld_LastName
,fld_FirstName = CustomerProfile.fld_FirstName
,fld_BirthDate = CustomerProfile.fld_BirthDate
FROM [DB_1].[dbo].[tbl_Customer] AS CustomerProfile --c
WHERE CustomerProfile.fld_CustomerNo = #TEMP.fld_CustomerNo
我想更新記錄時,客戶是不存在的:
[DB_1].[dbo].[tbl_Customer]
我想仰望:
[DB_2].[dbo].[tbl_Customer]
我如何能做到這一點在SQL查詢?
非常感謝。