I am just working on mySQL and create two tables, defined licenseID is the primary key in license_info, and foreign key in license_data. But I tested it didn't work the way as like in Oracle delete cascade or update cascade. Did I do something incorrect?
mysql> create table samDB.license_info ( -> licenseID integer(5) auto_increment primary key, -> vendorName VARCHAR(30) NOT NULL, -> featureName VARCHAR(30) NOT NULL); Query OK, 0 rows affected (0.01 sec) mysql> create table samDB.license_data( -> licenseID integer(5) NOT NULL REFERENCES samDB.license_info (licenseID) match full on delete cascade on update cascade, -> logDate DATE NOT NULL, -> totalLic integer(5) NOT NULL, -> issuedLic integer(5) NOT NULL, -> queuedLic integer(5) NOT NULL, -> deniedLic integer(5) NOT NULL, -> comment VARCHAR(100)); Query OK, 0 rows affected (0.01 sec) --------------------------------------------------------------------- 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