Answers for "ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`S20190010057`.`borrower`, CONSTRAINT `borrower_ibfk_1` FOREIGN KEY (`customer_name`) REFERENCES `customer` (`customer_name`))"

0

mysql error 1452

SELECT child_table.* 
FROM child_table 
LEFT JOIN parent_table 
  ON parent_table.referenced_column = child_table.referencing_column 
WHERE parent_table.referenced_column IS NULL


-- Delete all data from output of that query
Posted by: Guest on August-28-2020

Code answers related to "ERROR 1452 (23000): Cannot add or update a child row: a foreign key constraint fails (`S20190010057`.`borrower`, CONSTRAINT `borrower_ibfk_1` FOREIGN KEY (`customer_name`) REFERENCES `customer` (`customer_name`))"

Browse Popular Code Answers by Language