max(X) The max() aggregate function returns the maximum value of all values in the group. The maximum value is the value that would be returned last in an ORDER BY on the same column. Aggregate max() returns NULL if and only if there are no non-NULL values in the group. http://www.sqlite.org/lang_aggfunc.html#maxggunc作者: 天山明月 时间: 2013-8-13 19:03
如果是字符串类型,但是如果月份、日期小于10,在前面补0,也可以实现正常的倒序排列:
作者: 站长苏飞 时间: 2013-8-14 07:52
如果是日期类型的你先 ORDER BY UPDATETIME DESC;排序一下再取应该也是对的。你现在是怎么解决了我看3楼你说解决了作者: 天山明月 时间: 2013-8-14 11:41