我在想什麼?用「,」的東西,但我似乎看錯了地方。這是我的代碼:.SQLiteException:near「,」:語法錯誤(代碼1):,編譯時:
private static final String DATABASE_CREATE =
"CREATE TABLE if not exists " + SQLITE_TABLE + " (" +
KEY_ROWID + " integer PRIMARY KEY autoincrement," +
KEY_CURSUS + "," +
KEY_ONDERDEEL + "," +
KEY_GAME + "," +
KEY_TIJD + "," +
KEY_WEB + "," +
KEY_CHECK + "," +
" UNIQUE (" + KEY_ROWID +"));";
這是我的錯誤:
Caused by: android.database.sqlite.SQLiteException: near ",": syntax error (code 1): , while compiling: CREATE TABLE if not exists Games_getset (_id integer PRIMARY KEY autoincrement,cursus,onderdeel,game,tijd,web,check, UNIQUE (_id));
在這裏看:http://stackoverflow.com/questions/18718178/android-sqlite-database-column-defined-in-create-table-script-but-not-creating-o/18718292#18718292 –
列需要鍵入... – njzk2