mysql查询最新的5条记录的方法:执行【select * from audio order by id desc LIMIT 5;】语句即可。其中,【order by id】表示通过id来查询,【LIMIT 5】表示限制5条记录。
sql语句:
select * from audio order by id desc LIMIT 5;
说明:
order by id:通过id(字段名)来查询
desc:表示倒序
LIMIT 5:限制5条记录
上一篇:mysql里null指的是什么
下一篇:mysql查看表字符集的方法