MySQL Forums
Forum List  »  MySQL Workbench

foreign keys in MySQLWorkbench
Posted by: Menoo Trogdor
Date: September 10, 2019 01:39PM

I'm trying to set up a foreign key in the table [tblPIRlog] (the field is called "UIDcompany"). The FK is a Primary Key in the table [tblmycompanies]. The PK field is called "UIDmycompany". When I try to Apply the change in MySQLWorkbench, I get the following error.

https://menoo.org/mysql/2019-09-10%2014_08_24-MySQL%20Workbench.png

The tables look like this:

https://menoo.org/mysql/2019-09-10%2014_07_25-Synchronize%20Model%20with%20Database.png

Options: ReplyQuote


Subject
Views
Written By
Posted
foreign keys in MySQLWorkbench
63
September 10, 2019 01:39PM
18
September 10, 2019 04:34PM
13
September 11, 2019 09:01AM
13
September 11, 2019 10:01AM


Sorry, only registered users may post in this forum.

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.