且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

在sqlite中按降序排列日期

更新时间:2022-11-13 12:30:01

这些字符串不在 之一中支持的日期格式.

也许可以使用 substr() 来提取日期字段,并且CASE,用可排序的数字替换月份字符串,但***是首先将值以适当的格式存储在数据库中.

It might be possible to use substr() to extract the date fields, and CASE, to replace the month strings with sortable numbers, but it would be a better idea to store the values in a proper format in the database in the first place.