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

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -