1
任何騙子找到這些查詢中的錯誤?語法錯誤附近「,」而編譯選擇
String[] column = {"titolo","regista","cast","descrizione"};
String selection = "_id_film = ? ";
String[] selection_args = {Integer.toString(selectedfilm+1)};
Cursor cursor = db.query("T_FILM", column, selection,selection_args, null, null, null);
logcat的說:
android.database.sqlite.SQLiteException: syntax error near"," (code 1) :, while compling SELECT titolo,regista,cast,descrizione FROM T_FILM WHERE _id_film=?
下面的答案解釋了它,尤其是棘手的考慮英語不是你的母語,意大利命名爲列與保留的Sqlite關鍵字衝突沒有你意識到它。 – t0mm13b