其实,在sqlite3中没有top的语法结构,但在sqlite3中有相关的语法能实现跟top语法相同的功能,sqlite3 sql是用limit这样的语法来实现的;

如: select * from table where name='_安静ゝ' order by id limit 0,10;

这个效果就相当于select top 10 * from table where name='_安静ゝ'

如果还有更精确的:

select * from table where name='_安静ゝ' order by date desc,id limit 0,10;

相关文章:

  • 2022-01-01
  • 2021-12-08
  • 2022-12-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-11-20
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2022-03-03
  • 2021-12-18
  • 2021-12-04
相关资源
相似解决方案