sqlite3 module - Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

sqlite3 module - Python

Does AUTO_INCREMENT work in sqlite3 module in python? (If yes, do you type it AUTO_INCREMENT or AUTOINCREMENT?)

31st Jul 2021, 9:47 PM
Yahel
Yahel - avatar
2 Answers
0
✩✮★✮✩ just saying, I figured out that by making the field an INTEGER and a PRIMARY KEY, the field automatically becomes an AUTO_INCREMENT field...
2nd Aug 2021, 6:50 PM
Yahel
Yahel - avatar
0
✩✮★✮✩ I just did that in my project and it worked perfectly, it auto incremented the "id" field.. without even using the AUTOINCREMENT keyword.
3rd Aug 2021, 11:50 AM
Yahel
Yahel - avatar