mysql取前几行数据limit用法

order by id desc limit 10 按照id的倒序排序 取出前10条

order by id desc limit 0,10 按照id的倒序排序 取出前10条

order by id limit 5,10 按照id的正序排序 从第5条开始取10条

相关文章:

  • 2021-12-09
  • 2021-07-06
  • 2022-12-23
  • 2022-12-23
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2021-05-28
  • 2021-11-19
相关资源
相似解决方案