mysql删除指定数量的数据

delete from table_temp where ID in 
(select t.ID from (select ID from table_temp limit 1001,2000) as t);
table_temp 为表名;
ID为主键;
posted @ 2022-05-24 16:47  丙炎  阅读(332)  评论(0)    收藏  举报