实例说明:
假设表1– tab_01,表2– tab_02
1)MSSQL:
UPDATE a SET a.字段 = b.字段 , a.字段2= b.字段2, … FROM tab_01 AS a, tab_02 AS b WHERE a.ID = b.ID
2) Oracle:
UPDATE tab_01 a SET (a.字段1, a.字段2, …)= (SELECT b.字段1, b字段2, … FROM tab_02 b WHERE a.ID=b.ID)
3)MySQL:
UPDATE tab_01 a, tab_02 b SET a.字段1= b.字段1, a.字段2= b.字段2, … WHERE a.ID=b.ID