UPDATE table1 LEFT JOIN table2 ON table1.xx=table2.xx (关联的字段) SET table1.xx=value,table2.xx=value (update value) WHERE table1.xx=xx (条件)