![]() | |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
i have created 2 tables and want to make a FK between them, ALTER TABLE `icts`.`fact_customer_feedback` ADD CONSTRAINT `FK_fact_customer_feedback_2` FOREIGN KEY `FK_fact_customer_feedback_2` (`CFcustomer_Id`) REFERENCES `fact_customer` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; but it ruturns the error number 1452 cannot add or update a child row : a foreign key constraint fails. thanks |
#3
| |||
| |||
|
|
i have created 2 tables and want to make a FK between them, ALTER TABLE `icts`.`fact_customer_feedback` ADD CONSTRAINT `FK_fact_customer_feedback_2` FOREIGN KEY `FK_fact_customer_feedback_2` (`CFcustomer_Id`) REFERENCES `fact_customer` (`id`) ON DELETE RESTRICT ON UPDATE RESTRICT; but it ruturns the error number 1452 cannot add or update a child row : a foreign key constraint fails. |
![]() |
| Thread Tools | |
| Display Modes | |
| |