update a.col1 = b.col1 from table1 a,table2 b where a.col2 = b.col2;
当然也可以使用连接的方式,举例
update a.col1 = b.col1 from table1 a inner join table2 b on a.col2 = b.col2;