1 ,mysql中update语句中嵌套select的语法格式,可以用inner, left左联和右联进行条件查询
UPDATE table1 a
LEFT JOIN table2 b ON a.id = b.id 

SET a.fee = b.fee 

2,与1中的效果相同

UPDATE table1 a,table2 b 
SET a.fee = b.fee 
WHERE a.id = b.id