delete from data where exists (select * from (select id from data order by [id] desc limit 0,4) as a where a.id=data.id);
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
delete from data where exists (select * from (select id from data order by [id] desc limit 0,4) as a where a.id=data.id);
如果文章或资源对您有帮助,欢迎打赏作者。一路走来,感谢有您!
mysql 删除表中倒数N条数据(最后几条数据)
txttool.com 说一段 esp56物联 查询128 IP查询