mysql - error #1452 - assign FK twice for the same PK -


I get this error - # 1452 - Child row can not be added or updated: a foreign key obstacle fails She goes.

Do I think I try to hand over multiple foreign keys to a primary key, or is not it?

My table looks like this

  User ===== UID (PK) Friend ====== UID (F.K.) User Order ID = ===== Oder ID UID (F.K. of UserUID) & lt; - It is not certain whether this is possible or not    

You may order And trying to enter the FP user ID value to the friend, which is not present in the user table.

Comments

Popular posts from this blog

asp.net - Procedure or function "Procedure name" expects a parameter "Param name" which was not supplied occurs rarely -

c# - The item with identity 'Id' already exists in the metadata collection. Parameter name: item -

c++ - Redefined variable in the other module -