我有这样的查询:
Cursor c = bdd.query(db.TABLE_TorrentDownload, new String[] {db.COL_ID, db.COL_INFOHASH, db.COL_TorrentName,db.COL_Progress,db.COL_Peers,db.COL_dl,db.COL_ul,db.COL_State,db.COL_FolderPath,db.COL_Selected}, db.COL_State + " LIKE '3' OR " + db.COL_State + " LIKE '7'", null, null, null, null,null);
该查询适用于 4.0.3,但它在 android 2.2 模拟器上崩溃。它给了我一个 sqliteException:没有这样的列 Selected
任何想法为什么它在 2.2 上崩溃?
更新 1
android.database.sqlite.SQLiteException: no such column: Selected: , while compile: SELECT id, Info_Hash, TorrentName, Progress, Peers, dl, ul, State, Selected, FolderPath FROM tblTorrentDownload WHERE State LIKE '3' OR State LIKE ' 7'