[英]How to search between two dates in java with Sqlite database
I'm not java pro but SQL statement could be like this 我不是java pro,但SQL语句可能是这样的
select * from POSTS where Id = 1
and Date between '2011/02/25' and '2011/02/27'
or can use 或者可以使用
select * from POSTS where Id = 1
and Date >= '2011/02/25' and Date <= '2011/02/27'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.