Let's continue to look at the depth of the book recommended by the instructor for mysql database development. When we see the foreign key association problem in the innodb database, we have encountered a problem where we can write to the parent table
Let's continue to look at the depth of the book recommended by the instructor for mysql database development. When we see the foreign key association problem in the innodb database, we have encountered a problem where we can write to the parent table
Let's continue to look at the depth of the mysql database development book recommended by the instructor (for download). We encountered a problem when we saw the foreign key association problem with the innodb database, in the book, you can modify the parent table and synchronize it to the foreign key of the sub-Table. However, you cannot perform this experiment.
ERROR 1451 (23000): Cannot delete or update a parent row: a foreign key constraint fails ('test/city ', CONSTRAINT 'city _ ibfk_1 'eign KEY ('country _ id') REFERENCES 'country' ('country _ id '))
The problem above is that the country_id field cannot be changed because of association.
,