Home > database >  MySQL add outside health 1215 error
MySQL add outside health 1215 error

Time:09-15

MySQL small white questions
The first picture is the parent table
List 2 for child table, but outside the set 1215 errors in the healthy zno
At that time I thought it was a parent table storage engine problems, and then use the alter statements set the parent table engine and formats, like child table, but after the child table still appeared a 1215 error,
Bosses out what went wrong,

CodePudding user response:

The parent table the column must be the primary key, child table to use the foreign key links
  • Related