Cant add foreign key constraint in sqlite ...........
相关问题
- SQL/SQL-LITE - Counting records after filtering
- What SQLite NuGet package do I need
- How to write the array into the sqlite database fo
- Query self-join with Sequelize, including related
- Groupwise MAX() on a subquery
sqlite does not enforce foreign key constraints.
in sqlite 3 : examples :
Don not need foreign key (master_id) references master(_id) ; :)
As of SQLite 3.6.19, SQLite supports foreign keys. You need to enable them via:
sqlite> PRAGMA foreign_keys = ON;
They are turned off by default for backwards compatibility.
See the documentation for more details.