只更新前20条数据
// 把当前表创建时间前20条更新为前一天
UPDATE u_order
SET create_time = date_sub( create_time, INTERVAL 1 DAY )
LIMIT 20
区间时间更新要使用子查询
UPDATE u_order
SET create_time = date_sub( create_time, INTERVAL 1 DAY )
WHERE
id IN ( SELECT id FROM ( SELECT * FROM u_order_2022_04_19 WHERE create_time = '2022-04-15 18:05:16' LIMIT 0, 20000 ) AS aa )