在使用sql语句进行前20条记录查询时SQL Server可以这样写:

1: select top 20 * from [table] order by ids desc

2: select top 20 * from [table] where id not in (select top 20 id from [table] ) 

3: select top 20 * from (select top 30 * from [table] order by id) as tb1 order by tb1.id

而在SQLite中要这样用:

1:select * from [table] order by id  limit 20

 

相关文章:

  • 2022-12-23
  • 2021-07-24
  • 2021-09-08
  • 2022-12-23
  • 2022-03-06
  • 2021-06-03
猜你喜欢
  • 2021-08-21
  • 2021-06-16
  • 2022-12-23
  • 2021-10-15
  • 2021-10-05
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案