sqlite Date Sorting

前端 未结 4 837
佛祖请我去吃肉
佛祖请我去吃肉 2021-01-24 17:32

I am a parsing a file into a sqlite database that contains dates in the YYYY-MM-DD format. I want to store the entries into sqlite in such a way that I can sort the entries by d

4条回答
  •  甜味超标
    2021-01-24 18:20

    Instead of storing date in format "YYYY-MM-DD", store the time-stamp of that date and that will help you to sorting the table.

提交回复
热议问题