4
I am new to the forum and I count on your help in an issue that occurs in Mysql Workbench.
I did a little modeling to explain my doubt.
I would like to understand why when relating a table that already has a foreign key, the Workbench generates in this table that is being related to the foreign keys of the previous table.
Like in the model above, the Address table pulled the relationship from Pessoa/Funcionário
.
Could you help me in this matter?
NOTE: This modeling was only to show the doubt in question.
Thanks in advance.
Vlw Vitor. ?
– MTAugusto
Normally Workbench automatically sets Primary Key to only id’s, I can’t tell you what might be going on with the foreign key itself... )...
– Vitor Subhi
Has some version that contains in table configs the option foreingn Keys?
– MTAugusto
I don’t understand your question. Foreign key (Foreign key) is the field that establishes the relationship between two tables.
– Vitor Subhi
Yes, sorry, I wanted to talk about an option you define as a foreign key. Type, each time I relate, I will have to disable the primary key?
– MTAugusto
Bro, I figured out what makes this foreign key issue go to the next related table. My vacillation on the keys on the ligament identified with the unidentified ones. Now it will work here, Thank you so much for your help.
– MTAugusto
Denada, need we are there... ^^
– Vitor Subhi