SQLite数据库如何查询两个日期段内的数据?

flowercity flowercity 墨衍会员 · AI 创作全网分发 墨衍智能分发 通过墨衍一键同步至各平台 可同步平台 CSDN微信公众号微博知乎掘金百家号博客园抖音小红书 你的文章也可以这样分发 墨衍会员 ¥399起/年,写一次发全网 我也要 + 加入社区
数据库中有2008-6-1到2008-6-12之间的数据
1、select * from tblName where rDate > '2008-6-10' and rDate < '2008-6-12'
2、select * from tblName where rDate between '2008-6-10' and '2008-6-12'
3、select * from tblName where rDate > date('2008-6-10') and rDate < date('2008-6-12')

以上3条查询语句都没有结果,请问这样的查询在SQLite中如何实现?
...全文

相关推荐

评论 4
收藏 已收藏
分享
返回顶部
flowercity
其他数据库 2,208 成员 9,519 内容