I'm working with my first android SQL database and I have a strong feeling that something is wrong with my database creation sql statement. What am I missing guys?
private static final String CREATE_MOVES_TABLE =
"CREATE TABLE " + TABLE_MOVES + "(" +
KEY_ID + " INTEGER PRIMARY KEY GENERATED ALWAYS AS IDENTITY (START WITH 1, INCREMENT BY 1)," +
DATE + " TEXT," +
TRANSPORT + " TEXT," +
MARSH + " INTEGER," +
TIMEHOPON + " TEXT," +
TIMEHOPOFF + " TEXT" +
");";
I don't have a field for key_id in my constructor (I feel that it might be the weak part).