Enable Foreign Keys in a SQLite Database
The Problem
As is ¤well documented, SQLite does not support foreign key constraints. So Theory did some research on how to add foreign key constraint functionality to SQLite databases.
The Solution
(There is an ¤online tool which automatically generates the triggers proposed below based on the input CREATE TABLE statement.)
The trick to getting SQLite to enforce foreign key constraints is to use its marvelous trigger functionalilty.
[More info available in this
Wiki entry]
Last Updated:Thursday, September 02, 2010By:alferoSource#
with your OpenID.
If you do not know what OpenID is,