【发布时间】:2016-02-26 19:29:53
【问题描述】:
我想从 Android 应用程序更新我的 SQLite DB 中的前 n 条记录。以下是我迄今为止尝试过的查询。我在order 附近遇到语法错误。
update label set label_is_used = 1 where label_name !='temp' and label_cnt != 0 order by label_cnt desc limit 3
------------------------------------
update label set label_is_used = 1 where label_name !='temp' and label_cnt != 0 order by label_cnt limit 3
从docs 开始,这应该符合语法。
我哪里错了?
【问题讨论】: