In order to set up a foreign key relationship between two MySQL tables, three conditions must be met:
- Both tables must be of the InnoDB table type.
- The fields used in the foreign key relationship must be indexed.
- The fields used in the foreign key relationship must be similar in data type.
No comments:
Post a Comment