sqlite的Top筛选
SQLite Top 筛选
2023-09-11 14:14:22 时间
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条的数据
相关文章
- pyrhon SQLite数据库
- iOS开发之SQLite--C语言接口规范(五)——iOS开发使用SQLite实例
- [Sqlite3] Sqlite Introduction
- SQLite使用
- 数据库 简介 升级 SQLite 总结 MD
- android 对sqlite数据库的增删改查等各种操作
- paip.sqlite 管理最好的工具 SQLite Expert 最佳实践总结
- android.database.sqlite.SQLiteException: no such table: xxx (code 1 SQLITE_ERROR): , while compiling
- Qt 使用数据库SQLite、SQL Server
- 【SQLite备忘】sqlite设置自增字段
- 对SQLite 数据库的一点点了解
- Ubuntu下 sqlitebrowser 查看 Android Sqlite数据库