Re: Foreign Key in MySQL (was: Newbie Question: Convert SELECT to DEL ETE)

From: Date: Thu, 18 Oct 2001 20:35:28 +0000
Subject: Re: Foreign Key in MySQL (was: Newbie Question: Convert SELECT to DEL ETE)
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-13509@lists.php.net to get a copy of this message
Hi! MySQL-3.23.44 and MySQL-4.0.0 support foreign keys through transactional InnoDB type tables. See http://www.innodb.com for more info. Regards, Heikki Innobase Oy Rita Mikusch wrote in message <10C5C8152BD5D31181AC006008AD5F416886AD@NEWCA2>... >Foreign Keys? No such luck! You need to check the for the child records, >then delete them if they exist. > >rita. > >-----Original Message----- >From: Rick Emery [mailto:remery@excel.com] >Sent: Wednesday, October 17, 2001 6:09 AM >To: php-db@lists.php.net >Subject: Foreign Key in MySQL (was: Newbie Question: Convert SELECT to >DEL ETE) > > >MySQL also does not support FOREIGN keys. The term "FOREIGN KEY" is >accepted in the syntax, but it is ignored. > >-----Original Message----- >From: Ted Rolle [mailto:ted@acacia.datacomm.com] >Sent: Tuesday, October 16, 2001 6:37 PM >To: Sheila Myers >Cc: php-db@lists.php.net >Subject: Re: [PHP-DB] Newbie Question: Convert SELECT to DELETE >statement in mysql > > >MySQL doesn't have a CASCADE option AFAIK; PostgreSQL does.B > >On Tue, 16 Oct 2001, Sheila Myers wrote: > >> I haven't done a lot of mySql, but does it have a 'cascade' option when >> you're creating tables? This allows you to define a foreign key >> relationship, so that when you delete your master record, the associated >> child records are also deleted. >> >> Sheila >> > > > >-- >PHP Database Mailing List (http://www.php.net/) >To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net >For additional commands, e-mail: php-db-help@lists.php.net >To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.db (#13509) next »