update tableA a inner join tableB b on a.id = b.id set a.name = b.name