update table1,table2 set table1.columnA = table2.columnB where table1.tableID = table2.tableID