Adding a foreign key during table creation:

1.   Follow the steps in the Create Table Wizard until the Create Foreign Key to identify Column(s) window appears.

2.   Click the Add button. The Create Foreign Key - Introduction window appears.

3.   Click the Next button. The Name the Foreign Key window appears.

 

4.   Enter the foreign key name in the Foreign Key Name text field.

5.   Click check boxes beside the column names to specify which columns to include in the foreign key.

6.   Click the Next button. The Choose the primary key(s) from another table window of the Create Foreign Key Wizard appears.

            

7.   Select the name of the referenced table from the Referenced Table menu.

NOTE     Only tables containing primary keys or unique indexes that match the schema of the foreign key are shown.

8.   All the selected table columns that are primary keys or unique indexes are displayed.

9.   Click the Next button. The Update action and Delete action window appears.

10.   Choose a foreign key setting from the Update Action pop-up menu.

11.   Choose a foreign key setting from the Delete Action pop-up menu.

12.   Click the Next button. The Final Review window for foreign key creation appears.

13.   Click the Finish button. The Create Foreign Key to identify Column(s) window appears.

14.  To delete a foreign key:

a)       Select a foreign key.

b)       Click the Remove button.

15.   Click the Next button. The Advanced Information window appears.


Related Topics:

Adding a Foreign Key while Creating a Table

Setting Advanced Table Options