UPDATE ftms_iov_car_info fici
INNER JOIN (
SELECT
fieu.id,
fieu.enterprise_code
FROM
ftms_iov_enterprise_user fieu
WHERE
fieu.type = 2
AND fieu.del_flag = 0
) f ON fici.enterprise_code = f.enterprise_code
SET fici.user_id = f.id
以此类推