RE: self foreign keys and InnoDB is it possible ?

2003-04-03 Thread Daevid Vincent
t; Sent: Thursday, April 03, 2003 5:10 PM > To: [EMAIL PROTECTED] > Subject: self foreign keys and InnoDB is it possible ? > > > hi all > > I'm creating a table like this > > CREATE TABLE test ( > id integer not null primary key auto_increment, >

self foreign keys and InnoDB is it possible ?

2003-04-03 Thread alx
hi all I'm creating a table like this CREATE TABLE test ( id integer not null primary key auto_increment, testchar(20), father integer key default ='-1' not null, FOREIGN KEY (id) RERERENCES test(padre) ON DELETE CASCADE ) Type=InnoDB; But I made some mi

re: Foreign Keys and InnoDb in MySQL

2002-11-15 Thread Egor Egorov
Bruce, Friday, November 15, 2002, 5:35:21 AM, you wrote: BL> I have a problem about foreign key in using MySQL.com manual. According to BL> the example in MySQL.com manual, one foreign key is ok. However, I have 3 BL> tables (ie. 2 for parent tables and 1 for child table). When I use 2 or more

RE: Foreign Keys and InnoDb in MySQL

2002-11-15 Thread J. Ceferino Ortega
quot;foreign key (customerId) references customerTb (customerId) on delete cascade". José Ceferino Ortega -Mensaje original- De: Bruce Lee [mailto:itnobita@;hotmail.com] Enviado el: viernes, 15 de noviembre de 2002 4:35 Para: [EMAIL PROTECTED] Asunto: Foreign Keys and InnoDb in MyS

Foreign Keys and InnoDb in MySQL

2002-11-14 Thread Bruce Lee
Hello, I have a problem about foreign key in using MySQL.com manual. According to the example in MySQL.com manual, one foreign key is ok. However, I have 3 tables (ie. 2 for parent tables and 1 for child table). When I use 2 or more foreign keys, I have the following errors. Case 1: mysql> cr

foreign keys and innodb

2001-10-24 Thread Tore Van Grembergen
Hi, if you want to enjoy the foreign keys from innodb in mysql 4 then you can't use binaries from the rpm files. The rpm files contain innodb .43, not .43b! But the source 4.0.0 and the .tar.gz binary 4.0.0 (non-rpm) contains .43b which supports foreign keys. Kind regards Tore --