Hi. I was wondering if some of you know how to delete a foreign key on MySQL 4.0.5 (InnoDB), I tried the SQL92 syntax but it doesn`t works (I can not define a name to the foreign key when I create it, but I can give a constraint name to it, what it is useful for?)
MySQL syntax to create a FOREIGN KEY from an ALTER TABLE:
STANDARD SQL92 syntax to delete a FOREIGN KEY:
Thank you in advance for any help,
OGHS
MySQL syntax to create a FOREIGN KEY from an ALTER TABLE:
Code:
ALTER TABLE table_name ADD [CONSTRAINT name] FOREIGN KEY (col, ...) REFERENCES anotherTable(col1, ...);
STANDARD SQL92 syntax to delete a FOREIGN KEY:
Code:
ALTER TABLE table_name DROP FOREIGN KEY foreign_key_name;
Thank you in advance for any help,
OGHS