GithubHelp home page GithubHelp logo

Comments (2)

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Please read http://www.sqlite.org/foreignkeys.html and confirm you have 
followed all the steps under

2. Enabling Foreign Key Support

In order to use foreign key constraints in SQLite, the library must be compiled 
with neither SQLITE_OMIT_FOREIGN_KEY or SQLITE_OMIT_TRIGGER defined. If 
SQLITE_OMIT_TRIGGER is defined but SQLITE_OMIT_FOREIGN_KEY is not, then SQLite 
behaves as it did prior to version 3.6.19 - foreign key definitions are parsed 
and may be queried using PRAGMA foreign_key_list, but foreign key constraints 
are not enforced. 

...

Assuming the library is compiled with foreign key constraints enabled, it must 
still be enabled by the application at runtime, using the PRAGMA foreign_keys 
command. For example:

sqlite> PRAGMA foreign_keys = ON;

Original comment by [email protected] on 16 Jan 2013 at 4:49

  • Changed state: Reviewed

from csharp-sqlite.

GoogleCodeExporter avatar GoogleCodeExporter commented on June 20, 2024
Yes It almost works but I have  the child table is parent of another table so 
if delete  a row of activity table , sqlilte library no delete the rows of the 
last table.
I expect that sqlite delete the rows of PlanActivity ,TimeTable that are 
affected by the activity row delete.
-Table activity(Gran father)
 Id activity
 Another data
-Table PlanActivity(Child)
 Fk_idActivity
 Fk_idTimeTable
-Table TimeTable(Child of child)
 id Timetable
 anohter data
Thanks

Original comment by [email protected] on 16 Jan 2013 at 6:14

from csharp-sqlite.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.