2 Day Developer > Managing Database Objects > Managing Tables > Adding a Primary Key Constr...
Adding a Primary Key Constraint |
Previous |
Next |
You can use Object Browser to add a primary key constraint on a column in a table. The primary key uniquely identifies each record (row) that is inserted in the table and ensures that no duplicate rows exist. For information about the primary key constraint, see "Primary Key Constraint".
To add a primary key constraint:
Log in to the Database Home Page. See "Logging in to the Database Home Page".
On the Database Home Page, click the Object Browser icon.
In the Object list, select Tables then click the personal_info
table that you previously created.
Click the Constraints tab.
Click the Create button.
On the Add Constraint page, use following information to complete the page:
PERSONAL_INFO_PKEY
Primary Key
EMPLOYEE_ID(NUMBER)
Click the Next button.
Click the Finish button to complete the action.