How select a period of date from sqlite

。_饼干妹妹 提交于 2019-12-11 15:02:42

问题


I have a table in SQLite that has three fields (id, fromDate, toDate, uid). I want to select rows that has created in a specific dates. User select the period of time (from date/ to date). How I can query with ORMLite?


回答1:


Sqlite does not have a Date type(supported types) There is some dateTime functions, i think that any of function will meet your requirement... The easier solution will be to convert you date to a timestamp and compare the timestamp.



来源:https://stackoverflow.com/questions/52428006/how-select-a-period-of-date-from-sqlite

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!