Skip
Arish's avatar

261. FOREIGN KEY Validation


FK Enforcement

SQLite: Enable with PRAGMA

sql
1PRAGMA foreign_keys = ON;
  • Can't insert invalid reference
  • Can't delete referenced row (by default)