I created a table in Sqlite3, however I forgot to add AUTO INCREMENT
to column id
.
I tried to use ALTER TABLE
to solve the problem, but I still could not.
In SQLITE, is it allowed to define a column as auto increment , after the table has already been created?
If it does not, what is the solution to make my field id
as auto increment ?
My current schema is:
CREATE TABLE users (id INTEGER, name STRING);