Cant import into table because of the foreign key

Und alles was mit phpMyAdmin seine Verwandtschaft findet hat hier seinen Platz.

Cant import into table because of the foreign key

Postby hackoa » 13. November 2015 10:12

I receive this error when i try to insert into my table.
Query failed: SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`erp`.`info_query`, CONSTRAINT `info_query_ibfk_10` FOREIGN KEY (`ime_potrebitel`) REFERENCES `users` (`uid`))


When i delete the foreign key and make it again the error is moved to next constraint. This is strange and i think it is not normal. What you think?

I use: XAMPP 1.8.1 [PHP: 5.4.7]
hackoa
 
Posts: 3
Joined: 10. March 2015 15:52
Operating System: Windows 8.1 Pro

Return to phpMyAdmin

Who is online

Users browsing this forum: No registered users and 32 guests