我得到了以下rawquerySQLite的rawquery selectionArgs兩個不工作
private static final String DB_QUERY_GETPOS = "select f._id, F.FName, F.FArt, P.VName, O.Gebaeude, O.Raum from Faecher as F "
+ "inner join profs as P on F.Prof_ID = P._id "
+ "inner join ort as o on F.ort_id = o._id "
+ "inner join position as PO on PO.pos=? and id is not null where f._id = PO.id and PO.pos=? order by f._id;";
爲什麼會ArrayOutofBounds
例外訪問充滿了這個查詢結果的光標或ArrayList對象時?
爲什麼不?
PARAMS拿起我傳遞給rawquery的ARGS?
請問您可以發佈您訪問arraylist對象的代碼,以及您發送rawquery的地方嗎? – 2011-06-06 22:53:49
Hi @John。當我今天完成工作時,我會爲你添加這些行....這是一個私人項目,我只有在家裏的代碼。基本上這個問題是我在底部的評論中描述的。但到目前爲止,我可以告訴你的是,查詢只是在rawquery調用中看到的字符串+帶有選擇參數的字符串數組。 db.rawquery(DB_QUERY_GETPOS,String [] args); – m0rb 2011-06-07 13:49:19