Naming a Primary Key Constraint

A primary key constraint is a named check that enforces the uniqueness and the presence of values in a primary key column.

You can use the following variable in the name of a primary key constraint:

Variable

Description

%TABLE%

Code of the table

For a full list of all variables that you can use in PowerDesigner, see the appendix Variables in PowerDesigner.

  1. Double-click a table in the diagram to open its property sheet.
  2. Click the Keys tab, select the primary key, and click the Properties tool to open its property sheet.
  3. Enter the required name in the Constraint Name box.

    The User-Defined button to the right of the Constraint box is pressed automatically. You can return to the default constraint name by re-clicking the User-Defined button.

  4. Click OK in each of the dialog boxes.


Created October 7, 2009. Send feedback on this help topic to Sybase Technical Publications: pubs@sybase.com