开发者

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?

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜