update table1 set field1 = table2.field1, field2 = table2.field2 from table2 where table1.id = table2.id