1
Right click on the table where you want to add FK, select the menu Constraint
and then select Add Foreign Key
.
In the window that opens, fill in the information:
- Name: name of your FK
- Column Name: is the column of your foreign key table
- Reference Table Name: is the primary key table
- Referencing Column: is the primary key of your reference table
Click the button Apply
Reference:
Right click on the table name and choose the options "Constraint > Add Foreign key"
– Sam