Skip to content

Auto Increment for SQLite #434

Answered by Fabio286
safa-sharpmind asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @safa-sharpmind ,

SQLite works different than MySQL/MariaDB.
To have an autoincrement field you have to add an INTEGER PRIMARY KEY to the table.
Here a more detailed explaination

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@safa-sharpmind
Comment options

Answer selected by safa-sharpmind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants