More information about this here:
http://sqlite.org/foreignkeys.html

-Bill

> -----Original Message-----
> From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-
> boun...@sqlite.org] On Behalf Of Dominique Devienne
> Sent: Friday, April 25, 2014 4:31 AM
> To: olivier Ménard; General Discussion of SQLite Database
> Subject: Re: [sqlite] foreign keys
>
> On Fri, Apr 25, 2014 at 10:22 AM, olivier Ménard <men37...@yahoo.fr>
> wrote:
> > create table T(a primary key not null); create table U(a references T
> > not null); insert into U values(4)
>
> C:\Users\DDevienne>sqlite3
> SQLite version 3.8.4.3 2014-04-03 16:53:12 Enter ".help" for usage
> hints.
> Connected to a transient in-memory database.
> Use ".open FILENAME" to reopen on a persistent database.
> sqlite> pragma foreign_keys = on;
> sqlite> create table T(a primary key not null); create table U(a
> sqlite> references T not null); insert into U values(4);
> Error: FOREIGN KEY constraint failed
> sqlite>
> _______________________________________________
> sqlite-users mailing list
> sqlite-users@sqlite.org
> http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users
CONFIDENTIALITY, EXPORT CONTROL AND DISCLAIMER NOTE:This e-mail and any 
attachments are solely for the use of the addressee and may contain information 
that is privileged or confidential. Any disclosure, use or distribution of the 
information contained herein is prohibited. In the event this e-mail contains 
technical data within the definition of the International Traffic in Arms 
Regulations or Export Administration Regulations, it is subject to the export 
control laws of the U.S.Government. The recipient should check this e-mail and 
any attachments for the presence of viruses as L-3 does not accept any 
liability associated with the transmission of this e-mail. If you have received 
this communication in error, please notify the sender by reply e-mail and 
immediately delete this message and any attachments.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to