select * from [表名] order by [自动增长列] desc limit 1;
-- asc升序拿到第一个
-- desc降序拿到最后一个

posted on 2022-07-21 22:11  最帅爸爸  阅读(27)  评论(0)    收藏  举报