Error in near 'Autoincrement'
According to SQLite FAQ you have to declare either a INTEGER PRIMARY KEY
or INTEGER PRIMARY KEY AUTOINCREMENT
column to achieve that.
In SQLite you need not to specify AUTOINCREMENT if you are specifying a column as Primary Key...
SQLite AUTOINCREMENT : You Should Avoid Using It
Unless you create a table specifying the WITHOUT ROWID
option, you get an implicit auto increment column called rowid
.
The rowid
column store 64-bit signed integer that uniquely identifies a row within the table.