Foreign Key Editor
Data Tool's Foreign Key Editor allows adding and deleting foreign key constraints on the currently selected table.
How to create a foreign key constraint
- Select a table in the SQL Console's object list.
- Click the Foreign button below the object list.
The database often returns this information very slowly; it might take a few moments for the dialog to open.
- Click the Add button and select a table from a dropdown and a column in a listbox for two tables that have a foreign key relationship.
- Then click Add. The dialog will close and the DDL statement will appear in the editor's SQL textarea.
- Click 'Go' to replace the generated DDL into the SQL Console, close the editor, and run the statements.