Sqlite ORDER BY排序问题

作者: Lazy1 | 来源:发表于2018-02-23 20:14 被阅读11次

1.在使用sqlite进行多字段排序时候发现使用一下语句没效果?

select * from kgc_baike_images where effect=1 ORDER BY weight , last_update_time DESC

  1. 改成下面语句格式就可以了
    select * from kgc_baike_images where effect=1 ORDER BY weight DESC , last_update_time DESC

原因没有找到,有知道还望告知,特此记录。

相关文章

网友评论

    本文标题:Sqlite ORDER BY排序问题

    本文链接:https://www.haomeiwen.com/subject/hnxfxftx.html