Oracle 和 DB2 语法
UPDATE A
SET (A1,A2,A3) = (SELECT B1,B2,B3 FROM B WHERE A.ID = B.ID)
SQLSERVER 语法
UPDATE A
SET A1=B1,A2=B2,A3=B3
FROM A LEFT JOIN B ON A.ID = B.ID
UPDATE A
SET A1=B1,A2=B2,A3=B3
FROM A,B WHERE A.ID = B.ID
对于 SQLSERVER 来说 FROM 后面必须申明有两个关联的表和 视图,即使是别名。否则语法不成立。