例如:需求是更新md_port表的port_name_en字段,更新的值是select的(条件md_port.port_5code = temp.LocationCode)结果,不能直接更新,要用inner join
UPDATE md_port INNER JOIN (SELECT * FROM temp) c SET md_port.port_name_en=c.CombinedLocationState
WHERE md_port.port_5code = c.LocationCode