Defining primary keys
When a new table is created, the primary key is created automatically by the Object Designer. The first field defined in the table is assigned as the single primary key field. This is not always the primary key the developer means for the table. Let's see how to change the primary key manually.
Review the Lease Contract Header table and look at the primary key suggested by the Object Designer. To access the table keys, open the table in the Object Designer and choose the View | Keys menu action.
This action will show the list of table keys. There is only one key with a single field number in it. This is what we want for the Lease Contract Header, so now close the keys list and the table designer to return to the Object ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access