If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the package, as described in Using the Example Databases.
Open a connection:
Create a table with a primary key:
Create another table. The column will be used for a foreign key constraint referencing the table's primary key:
Add the foreign key constraint:
The foreign key appears as an index in the table:
The primary key column in the table now appears as an exported key: