Category: SQL

foreign keyの設定で「 SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails」のエラーが出たときの対処法