Need Assistance?

support@tutorialshub.in

Tables, Constraints & Foreign Keys

FOREIGN KEY Constraints (PRAGMA foreign_keys = ON)

ADVERTISEMENT
SQLite Free Lesson
5 min read
ADVERTISEMENT

Critical SQLite Gotcha: For backwards compatibility, SQLite disables Foreign Key enforcement by default on every new connection! Always run PRAGMA foreign_keys = ON; right after opening your database connection.

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