MySQL Forums
Forum List  »  MySQL Workbench

Re: Foreign Key problems
Posted by: Mike Lischke
Date: September 15, 2014 12:50AM

Paul, looks like your people table doesn't have an entry for the new parent entry. You set a foreign key on "parents" to allow only entries whose primary key corresponds to at least one entry in the "people" table (as given by the foreign key).

Mike

Mike Lischke, MySQL Developer Tools
Oracle Corporation

MySQL Workbench on Github: https://github.com/mysql/mysql-workbench
On Twitter: https://twitter.com/MySQLWorkbench
On Slack: mysqlcommunity.slack.com (#workbench)
Report bugs to http://bugs.mysql.com
MySQL documentation can be found here: http://dev.mysql.com/doc/refman/8.0/en/

Options: ReplyQuote


Subject
Views
Written By
Posted
1298
September 13, 2014 05:24AM
Re: Foreign Key problems
681
September 15, 2014 12:50AM
568
September 20, 2014 02:38AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.