SQLite DateTime比較我似乎無法從使用日期時間字符串作為比較的sqlite數(shù)據(jù)庫的查詢中獲得可靠的結(jié)果,如下所示:select *
from table_1
where mydate >= '1/1/2009' and mydate <= '5/5/2009'我該如何處理與sqlite的日期時間比較?update:field mydate是DateTime數(shù)據(jù)類型解:遵循datetime函數(shù)并具有字符串格式為YYYY-MM-DD HH:mm:ss我取得了如下良好的結(jié)果,如下所示select *
from table_1
where mydate >= Datetime('2009-11-13 00:00:00')
and mydate <= Datetime('2009-11-15 00:00:00')
SQLite DateTime比較
開滿天機
2019-08-02 14:27:30