ERROR 1452: Cannot add or update a child row: a foreign key constraint fails

后端 未结 21 2000
野性不改
野性不改 2020-11-22 07:01

I have created tables in MySQL Workbench as shown below :

ORDRE table:

CREATE TABLE Ordre (
  OrdreID   INT NOT NULL,
  OrdreDato DA         


        
21条回答
  •  长情又很酷
    2020-11-22 07:42

    Its 100% working...

    ERROR 1452: Cannot add or update a child row: a foreign key constraint fails.... if this type of error occur : then First of all goto this table and check in setting > if Engine is: InnoDB then change its to MyISAM

    (and delete references foreign constraint)

提交回复
热议问题