如何查询最后一行的记录
Select * from 表名 order by id desc limit 1;
例如:Select * from student order by sno desc limit 1;
表student所有数据如下:
欢迎批评指正,提出问题,谢谢!
Select * from 表名 order by id desc limit 1;
例如:Select * from student order by sno desc limit 1;
表student所有数据如下: