Answers for "qlMessage: 'Cannot delete or update a parent row: a foreign key constraint fails code: 'ER_ROW_IS_REFERENCED_2', errno: 1451, sqlState: '23000',"

SQL
1

error 1451 (23000): cannot delete or update a parent row: a foreign key constraint fails

SET FOREIGN_KEY_CHECKS = 0; -- to disable FK checks (ex: for delete purpose)
SET FOREIGN_KEY_CHECKS = 1; -- to re-enable FK checks
Posted by: Guest on March-21-2021

Code answers related to "qlMessage: 'Cannot delete or update a parent row: a foreign key constraint fails code: 'ER_ROW_IS_REFERENCED_2', errno: 1451, sqlState: '23000',"

Code answers related to "SQL"

Browse Popular Code Answers by Language