Need Assistance?

support@tutorialshub.in

Data Types, Affinity & STRICT Tables

INTEGER PRIMARY KEY (ROWID) & AUTOINCREMENT

ADVERTISEMENT
SQLite Free Lesson
5 min read
ADVERTISEMENT

Every SQLite row automatically has a fast 64-bit rowid. Declaring a column as INTEGER PRIMARY KEY makes it an alias for rowid and auto-increments automatically—without needing the extra AUTOINCREMENT keyword (which SQLite docs actually recommend avoiding unless you strictly need IDs never reused after deletion).

ADVERTISEMENT
Hi, I'm Tuby! Here to help you