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