Chris,
Thursday, May 30, 2002, 1:58:54 AM, you wrote:

>> CREATE TABLE parent(id INT NOT NULL,
>>              PRIMARY KEY (id)) TYPE=INNODB;
>>
>> CREATE TABLE child(id INT, parent_id INT,
>>              INDEX par_ind (parent_id),
>>              FOREIGN KEY (parent_id) REFERENCES parent(id)
>>              ON DELETE CASCADE) TYPE=INNODB;


CK> OI!!!  I'm going to sound like a complete ass now (I know).... But since
CK> when does MySQL support FOREIGN keys?????????? *gasp* MAN this is going to
CK> make my life SOOOO much easier *curses at phpMyAdmin for not having the
CK> option*....

Yes, MySQL has foreign key constraints, but ON DELETE CASCADE is
supported since 3.23.50:
          http://www.mysql.com/doc/S/E/SEC446.html

CK> *lick* *bounce* *all happy now* *goes to redo all his DBs*
CK> Now, I like MySQL 10 times more!!!!





-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
       <___/   www.mysql.com



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to