方法1:试试这样的语句能不能行:update table_A set table_A.num=(select table_B.QH where table_B.ID=table_A.ID);方法2.创建一个视图:第一、 create view view_temp (select A.num as num,B.qh as qh) from A,B where A.ID=B.ID);第二、更新view: update view_temp set num=qh