Hi,
In my table I want to have an ID column that is going to be unique and it is going to be autoincremented. I want to start from 0.
How can I implement it?
Hi,
In my table I want to have an ID column that is going to be unique and it is going to be autoincremented. I want to start from 0.
How can I implement it?
Basically, create a column of type INTEGER PRIMARY KEY or a column called ROWID, then don't specify the value when inserting a row.
Full details are on the SQLite page on Autoincrement.