When executing a SQL query, I suddenly reported 1452, which made me totally confused.
In fact, the main reason for the error of 1452 is that there is no data in the main table corresponding to the child table with foreign keys.
For example:
Class list:
The
In fact, the main reason for the error of 1452 is that there is no data in the main table corresponding to the child table with foreign keys.
For example:
Class list:
The
id td> | name td> tr> | ||||||||||||
1 td> | advanced classes td> tr> | ||||||||||||
2 td> | regular class td> tr> tbody> table> Student table:
|