Re: MySQL DELETE QUERY HELP PLZ ! ! !
CREATE TABLE models (
mod_aa INT PRIMARY KEY
, ...
) ENGINE=INNODB;
CREATE TABLE product (
prod_aa INT PRIMARY KEY,
mod_aa INT,
...,
INDEX(mod_aa),
FOREIGN KEY(mod_aa) REFERENCES models ON DELETE CASCADE
) ENGINE=INNODB;
and so on down the parent-child chain.
PB
Subject
Written By
Posted
Re: MySQL DELETE QUERY HELP PLZ ! ! !
May 04, 2006 09:21AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.