两张关联表,使用其中一张表的字段更新到另一张表

update tableA,tableB  

set tableA.name = tableB.name

where tableA.user_id = tableB.user_id

相关文章: