mysql如何查询最新的5条记录
时间:2022-02-25 11:44
mysql查询最新的5条记录的方法:执行【select * from audio order by id desc LIMIT 5;】语句即可。其中,【order by id】表示通过id来查询,【LIMIT 5】表示限制5条记录。 sql语句: (推荐教程:mysql教程) 说明: order by id:通过id(字段名)来查询 desc:表示倒序 LIMIT 5:限制5条记录 相关推荐:php培训 以上就是mysql如何查询最新的5条记录的详细内容,更多请关注gxlsystem.com其它相关文章!select * from audio order by id desc LIMIT 5;