Skip to content
Advertisement

Insert into table where id is not null and auto increment sqlite3

I’m trying to add some values into a table, but I get an error for not manually inputting the id.

When I remove ‘not null’ the id just stays null

Advertisement

Answer

The answer Shawn gave worked, which is to remove AUTO_INCREMENT https://sqlite.org/autoinc.html

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement