AndroidAndroid开发Android开发经验谈

Sqlite ORDER BY排序问题

2018-02-23  本文已影响11人  Lazy1

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

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

上一篇下一篇

猜你喜欢

热点阅读