表A 字段: id, name, sex... 表B字段: id, name. sex... update A a, B b set a.name=b.name, a.sex=b.sex where a.id = b.id;