Hello. On Tue 2002-12-10 at 16:05:05 -0800, [EMAIL PROTECTED] wrote: > 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)
If you did not change your default table type, this will create a table with the MYISAM handler. You can find that out by using SHOW CREATE TABLE samDB.license_info. ON CASCADE is only supported with the InnoDB handler. You can force the InnoDB handler by adding TYPE=InnoDB before the semicolon in the query above. HTH, Benjamin. -- [EMAIL PROTECTED] --------------------------------------------------------------------- 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