Página 1 de 1

How do I implement Foreign key Constrain in Sqlite ?

Publicado: Lun Nov 11, 2013 7:11 am
por Milan Mehta
How do I implement Foreign key in Sqlite ?
xaSqlite do not have facility to define Foreign key.
I tried creating database with Sqlitestudio and defined Foreign key. But Xailer do not respect that Foreign key and allowed a record to be deleted when dependency still exist !
Kindly guide us. Referential integrity is of paramount importance for any database management System.
TIA
Milan.

How do I implement Foreign key Constrain in Sqlite ?

Publicado: Lun Nov 11, 2013 10:23 am
por ignacio
Milan Mehta escribió el Mon, 11 November 2013 07:11How do I implement Foreign key in Sqlite ?
xaSqlite do not have facility to define Foreign key.
I tried creating database with Sqlitestudio and defined Foreign key. But Xailer do not respect that Foreign key and allowed a record to be deleted when dependency still exist !
Kindly guide us. Referential integrity is of paramount importance for any database management System.
TIA
Milan.
http://www.sqlite.org/foreignkeys.html
Regards

How do I implement Foreign key Constrain in Sqlite ?

Publicado: Lun Nov 11, 2013 3:35 pm
por Milan Mehta
Do I have to issue any command to enable Foreign Key constrain in Xailer ?
I observe that xailer do not generate any error when deleting a record for which dependency exist (when Foreign key constrain is defined) !
Kindly guide.
Milan.

How do I implement Foreign key Constrain in Sqlite ?

Publicado: Lun Nov 11, 2013 5:05 pm
por ignacio
Milan Mehta escribió el lun, 11 noviembre 2013 15:35Do I have to issue any command to enable Foreign Key constrain in Xailer ?
I observe that xailer do not generate any error when deleting a record for which dependency exist (when Foreign key constrain is defined) !
Kindly guide.
Milan.


Attached files

How do I implement Foreign key Constrain in Sqlite ?

Publicado: Mar Nov 12, 2013 6:40 am
por Milan Mehta
Great !
I incorporated following command in the application
:Execute("PRAGRAM foreign_keys = ON")
and it started working excellently ! Great relief.
Thanks a lot.
Milan.