Enable foreign keys on Sqlite3 version 3.5.9
I'm trying to enable foreign keys on a sqlite3 database doing this:
sqlite> PRAGMA foreign_keys=ON;
But it doen't work.
How can I do it?
Note: the database is on an Android device.
Thank开发者_如何学Pythons.
Sqlite3 supports foreign keys only as of version 3.6.19 http://www.sqlite.org/foreignkeys.html
UPDATE
Version of SQLite used in Android?
精彩评论