标准sql的top n 语法是
select top 10 * form t1 where ... order by id desc

mysql中要用limit
select * from t1 where ... order by id limit 0, 15

不过limit的好处是,limit可以是任意中段。

其中limit n,m 的意思是:从第n+1个开始的m条数据

相关文章:

  • 2021-06-12
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2021-08-09
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-11-09
  • 2021-04-14
  • 2022-12-23
  • 2021-10-01
相关资源
相似解决方案