Auto Increment for SQLite #434
Answered
by
Fabio286
safa-sharpmind
asked this question in
Q&A
-
Auto increment in to available under defaults when creating a table in SQLite database. anyway to add this ? |
Beta Was this translation helpful? Give feedback.
Answered by
Fabio286
Sep 5, 2022
Replies: 1 comment 1 reply
-
Hi @safa-sharpmind , SQLite works different than MySQL/MariaDB. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
safa-sharpmind
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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