📜  如何从 SQL Server 中的 SELECT 更新? - SQL 代码示例

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

代码示例1
UPDATE     Table_A SET     Table_A.col1 = Table_B.col1,     Table_A.col2 = Table_B.col2 FROM     Some_Table AS Table_A     INNER JOIN Other_Table AS Table_B         ON Table_A.id = Table_B.id WHERE     Table_A.col3 = 'cool'