select * from orders ORDER BY id desc LIMIT 1 id是你的自增主键 转载于:https://www.cnblogs.com/horsen/p/6921247.html