Effect of setting the foreign keys Pragma
I have used foreign keys in a database. What will be the effect of setting the Pragma foreign_keys as True or False.
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pravin MoreRank #1,419 · 1.2K reputationPosted Nov 24, 2011, 8:45 PM EST
hi Monika,
In SQLLITE ,Foreign key constraints are disabled by default for backwards compatibility issue, so we must be enable it separately for each database connection.
But it again depend on which SQLLITE release version you are using.
Thanks,
Pravin.