How can I find records on two dates in SQLite ?
In mysql I know it's through BETWEEN
, but I do not know how it does in SQLIte.
How can I find records on two dates in SQLite ?
In mysql I know it's through BETWEEN
, but I do not know how it does in SQLIte.
SQLite uses BETWEEN as stated in the comment, following example:
SELECT * FROM Pessoa WHERE Data BETWEEN '2000-01-01' AND '2015-01-01'
Note: If you tried with BETWEEN
and did not get the problem may be in date format, SQLite expects the date to be in YYYY-MM-DD
format, it might be treating your search as string
.
Source: link