1、表1和表2均有id和name两个字段,如果表2的id在表1中有,把表2的name换为表1对应的name update 表2 set 表2.name=表1.name from 表1,表2 where 表1.id=表2.id;【关联更新】