需要根据enterprise表中的unit_name字段更新max_amount字段,max_amount与unit_name可以在temp表中获取到

enterprise表中unit_name对应temp表中name

max_amount对应temp表中value



UPDATE enterprise 
SET MAX_AMOUNT = (
SELECT
temp.VALUE
FROM
temp
WHERE
enterprise.UNIT_NAME = temp.`NAME`
)