📜  sql server 根据另一个表更新列 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:51.104000             🧑  作者: Mango

代码示例1
UPDATE
    Sales_Import
SET
    Sales_Import.AccountNumber = RAN.AccountNumber
FROM
    Sales_Import SI
INNER JOIN
    RetrieveAccountNumber RAN
ON 
    SI.LeadID = RAN.LeadID;