mysql 从查询出来的数据中,修改数据

UPDATE x_sys_limit_function
INNER JOIN (
SELECT
x_sys_limit_function.id,
x_sys_limit_function.function_id,
x_sys_limit_function.app_id,
x_sys_limit_function.supplier_setting_id,
x_sys_limit_function.limit_call_id,
x_sys_limit_function.tenant_id,
x_sys_limit_function.status,
x_sys_limit_function.create_user,
x_sys_limit_function.create_time,
x_sys_limit_function.modify_user,
x_sys_limit_function.modify_time
FROM
x_sys_limit_function
where x_sys_limit_function.function_id LIKE ‘914%’

) b ON x_sys_limit_function.id = b.id
SET x_sys_limit_function.tenant_id = ‘-1’

你可能感兴趣的:(sql)