manual.texi:

  InnoDB does allow a foreign key constraint name to be specified
parent 89a61ccd
...@@ -39260,7 +39260,7 @@ constraints to guard the integrity of your data. ...@@ -39260,7 +39260,7 @@ constraints to guard the integrity of your data.
The syntax of a foreign key constraint definition in InnoDB: The syntax of a foreign key constraint definition in InnoDB:
@example @example
FOREIGN KEY (index_col_name, ...) [CONSTRAINT symbol] FOREIGN KEY (index_col_name, ...)
REFERENCES table_name (index_col_name, ...) REFERENCES table_name (index_col_name, ...)
[ON DELETE CASCADE | ON DELETE SET NULL] [ON DELETE CASCADE | ON DELETE SET NULL]
@end example @end example
...@@ -39319,7 +39319,7 @@ Starting from version 3.23.50 InnoDB allows you to add a new ...@@ -39319,7 +39319,7 @@ Starting from version 3.23.50 InnoDB allows you to add a new
foreign key constraint to a table through foreign key constraint to a table through
@example @example
ALTER TABLE yourtablename ALTER TABLE yourtablename
ADD CONSTRAINT FOREIGN KEY (...) REFERENCES anothertablename(...) ADD [CONSTRAINT symbol] FOREIGN KEY (...) REFERENCES anothertablename(...)
@end example @end example
Remember to create the required indexes first, though. Remember to create the required indexes first, though.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment