Hello, everyone. I am having a trouble with: ”Cannot add or update a child row: a foreign key constraint fails”, but I don’t know how to fix it. I have the following Cities table: +----+------------+ | id | city_name | +----+------------+ | ...
Home/a foreign key constraint fails
ITtutoria Latest Questions
Léa Hamel
Asked: May 17, 2022In: Programs
How to solve the problem – cannot delete or update a parent row: a foreign key constraint fails? I have the sample detail: DELETE FROM `jobs` WHERE `job_id` =1 LIMIT 1 CREATE TABLE IF ...