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

前端 未结 12 1255
眼角桃花
眼角桃花 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 05:56

    Also make sure that the foreign key you add is the same type of the original column, if the column you're reference is not the same type it will fail too.

提交回复
热议问题