Integrity constraint violation: 1452 Cannot add or update a child row:

前端 未结 12 1257
眼角桃花
眼角桃花 2020-11-27 05:32

I am trying to insert values into my comments table and I am getting a error. Its saying that I can not add or update child row and I have no idea what that means.

m

12条回答
  •  一整个雨季
    2020-11-27 06:13

    Maybe you have some rows in the table that you want to create de FK.

    Run the migration with foreign_key_checks OFF Insert only those records that have corresponding id field in contents table.

提交回复
热议问题