我想使用group by查询android4.0以上的calllogs,但它没有用。这是错误:
android.database.sqlite.SQLiteException:near" GROUP&#34 ;:语法错误(代码1):,同时编译:SELECT _id,number,date,duration,type,name,numbertype,numberlabel FROM logs WHERE(logs.logtype = 100 OR logs.logtype = 110 OR logs.logtype = 900 OR logs.logtype = 500 OR logs.logtype = 800 OR logs.logtype = 120 OR logs.logtype = 510 OR logs.logtype = 1000 OR (logs.logtype = 200 AND number NOT IN(SELECT number FROM logs WHERE number LIKE'%@%'))或logs.logtype = 300 OR logs.logtype = 950)AND(((0 = = 0)GROUP BY(数字),(类型),(日期/ 86400000)AND((类型!= 4))AND(logtype = 100 OR logtype = 500 OR logtype = 950)))ORDER BY date DESC。
我该怎么办?