如果我要取11-20的Students表的数据,则为: Select * From Students  Limit 9 Offset 10;

表示从Students  表获取数据,跳过10行,取9行 。也可以这样写 select * from Students limit 10,9 和上面的的效果一样。 

通用公试:  sql = "select * from TableName where "+条件+" order by "+排序+" limit "+要显示多少条记录+" offset "+跳过多少条记录;


如: select * from Students limit 15 offset 20     表示: 从Students表跳过20条记录选出15条记录

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-10-04
  • 2022-12-23
  • 2021-12-10
  • 2022-12-23
猜你喜欢
  • 2023-01-04
  • 2022-12-23
  • 2021-12-21
  • 2022-01-25
  • 2021-07-15
  • 2022-02-02
相关资源
相似解决方案