完整语句:

delete from _sql执行记录 where id in (select id from _sql执行记录 order by id desc limit 100,100000)


delete from _sql执行记录 where id in (

select id from _sql执行记录 order by id desc limit 100,100000

)

其中查询语句 是按id 从大到小排序  并limit 掉100个(保留100个)   后面的随意

然后按 in 删除即可