$res=mysql_query("select * as `gongzi` from `worker` as `w` inner jion `bumen` as `b` on `w`.`bnumber` = `b`.`bnumber` inner jion `guyuan` as `g` on `b`.`manger` = `g`.`gnumber` where `b`.`manger` = `E04`;");$res1=mysql_fetch_assoc($res);update `guyuan` set '$res1['gongzi']' = '((int)$res1['gongzi']+((int)$res1['gongzi']*0.03))';思路就是这样,语句可能有标点符号漏掉或多了,你可以试试。