I am trying to create a table with an auto-incrementing primary key
in Sqlite3. I am not sure if this is really possible, but I am hoping to only have to designate the other fields.
For example:
CREATE TABLE people (
id integer primary key auto increment,
first_name varchar(20),
last_name varchar(20)
);
Then, when I add a value, I was hoping to only have to do:
INSERT INTO people VALUES ("John", "Smith");
Is this even possible?
I am running sqlite3
under cygwin
in Windows 7.