select [CollectDateTime] as '时间',[Channel_34] as '通道34',[Channel_54] as '通道54' from [DataTable]
where [CollectDateTime] <'2014-11-20 17:15:34' and [CollectDateTime]>'2014-11-19 17:15:34'
LIMIT 10,20

 

Limit a,b

其中a代表索引,表示从筛选出的数据,哪一个位置开始读取数据

b表示条数,从a位置开始,读书数据的条数

 

假设select [CollectDateTime] as '时间',[Channel_34] as '通道34',[Channel_54] as '通道54' from [DataTable] 
where [CollectDateTime] <'2014-11-20 17:15:34' and [CollectDateTime]>'2014-11-19 17:15:34'

筛选出了100条语句

那么最后的LIMIT 10,20表示,从结果,100条语句的,第10个数据开始,向后筛选20条数据

也就是说,最后得到的数据是从第10条到第30条的数据

 

相关文章:

  • 2021-07-12
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-06-29
  • 2021-05-12
  • 2021-12-04
猜你喜欢
  • 2021-06-04
  • 2022-02-16
  • 2022-12-23
  • 2021-11-14
  • 2022-12-23
  • 2021-11-15
  • 2022-12-23
相关资源
相似解决方案