How to compare sqlite TIMESTAMP values

后端 未结 3 559
走了就别回头了
走了就别回头了 2020-11-28 10:32

I have an Sqlite database in which I want to select rows of which the value in a TIMESTAMP column is before a certain date. I would think this to be simple but I can\'t get

3条回答
  •  时光说笑
    2020-11-28 11:03

    SQLite's support for date/time types is very limited. You may have to roll-your-own method for maintaining time information. At least, that's what I did.

    You can define your own stored-functions for doing comparisons using the SQLite create_function() API.

提交回复
热议问题