mysql数据库update更新表中某个字段的值为另一张表的某个字段值
直接到下面sql语句
update tableA a left join tableB b on a.id= b.id set a.name = b.name,a.age=b.age where a.id=b.id;
直接到下面sql语句
update tableA a left join tableB b on a.id= b.id set a.name = b.name,a.age=b.age where a.id=b.id;