基于ID匹配的从一个表到另一个表的SQL更新
account numbers
card numbers
update
Table ID
Sales_Import
account number
LeadID AccountNumber147 5807811235150 5807811326185 7006100100007267039
RetrieveAccountNumber
LeadID AccountNumber147 7006100100007266957150 7006100100007267039
UPDATE [Sales_Lead].[dbo].[Sales_Import] SET [AccountNumber] = (SELECT RetrieveAccountNumber.AccountNumber FROM RetrieveAccountNumber WHERE [Sales_Lead].[dbo].[Sales_Import]. LeadID = RetrieveAccountNumber.LeadID)
NULL
慕哥6287543
喵喔喔
呼唤远方
相关分类