update table_1 t1 sett1.name=(select t2.name from table_2  t2 where t1.id=t2.id)