且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

删除表的最后一行使用SQL查询?

更新时间:2023-02-06 22:56:57

如果id是自动递增的,则可以使用以下

If id is auto-increment then you can use the following

delete from marks
order by id desc limit 1