Re: mySQL and innoDB

2002-04-09 Thread Alain Del Giust
archy values ('X','F','C'); insert into table hierarchy values ('X','B',NULL); insert into table hierarchy values ('X','D','B'); insert into table hierarchy values ('X','E','B'); T

Re: mySQL and innoDB

2002-04-09 Thread Alain Del Giust
Enterprise Sybase Adaptive Server Anywhere Thanks, Alain - Original Message - From: "Rance Hall" <[EMAIL PROTECTED]> To: "Alain Del Giust" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Tuesday, April 09, 2002 6:42 PM Subject: RE: mySQL and innoDB

Re: mySQL and innoDB

2002-04-09 Thread Alain Del Giust
Nope insert into b values ('BBB',null); here: BBB is PK of table b null is FK of table b referencing table a for example insert into b values ('BBB','aaa'); works well Alain - Original Message - From: "Rance Hall" <[EMAIL PROTECTE

mySQL and innoDB

2002-04-09 Thread Alain Del Giust
Hi all, I am pretty new to mySQL actually I started yesterday. mySQL with innoDB handles integrity constraints. I tried : create table a ( id varchar(3) not null, primary key(id) ) TYPE=INNODB; insert into a values ('aaa'); create table b ( id varchar(3) not null, a_id varchar(3), i