"与"子句查询在android中不起作用

时间:2017-06-10 12:47:13

标签: android sqlite

这是我的rawQuery

WITH authorRating(aname, rating) AS SELECT aname, AVG(quantity) FROM book GROUP BY aname

错误在Logcate中

   android.database.sqlite.SQLiteException: near "WITH": syntax error (code 1):

1 个答案:

答案 0 :(得分:1)

自SQLite 3.8.3起支持

WITH,而不是shipped with all Android versions

无论如何,此查询不是valid WITH clause,并且缺少实际查询。