我在
Android应用程序中使用sqlite数据库,有时在调用database.rawQuery(String sql,String [] selectionArgs)时会得到sqliteMisuseException.
这很奇怪,因为这个例外似乎是ramdomly,我真的不知道为什么.
这很奇怪,因为这个例外似乎是ramdomly,我真的不知道为什么.
有关异常的更多信息:
android.database.sqlite.sqliteMisuseException: library routine called out of sequence:,while compiling: SELECT PromoGuid,PromoViewCount FROM TablePromoView at android.database.sqlite.sqliteCompiledsql.native_compile(Native Method) at android.database.sqlite.sqliteCompiledsql.compile(sqliteCompiledsql.java:92) at android.database.sqlite.sqliteCompiledsql.<init>(sqliteCompiledsql.java:65) at android.database.sqlite.sqliteProgram.<init>(sqliteProgram.java:83) at android.database.sqlite.sqliteQuery.<init>(sqliteQuery.java:49) at android.database.sqlite.sqliteDirectCursorDriver.query(sqliteDirectCursorDriver.java:42) at android.database.sqlite.sqliteDatabase.rawQueryWithFactory(sqliteDatabase.java:1356) at android.database.sqlite.sqliteDatabase.rawQuery(sqliteDatabase.java:1324) at com.my.application....
提前致谢,
PS:对不起,我的英语很差,我来自比利时