Sybase XML manual Defining a key constraint

Models: XML

1 290
Download 290 pages 48.58 Kb
Page 78
Image 78

Defining identity constraints

Defining a key constraint

A key constraint specifies that an element or an attribute value (or set of values) must be a key within a specified scope.

A key means that data should be unique, not null and always present within a specified scope.

For example:

Generated schema:

The KEYCODE key constraint, defined on the project element, specifies that the code attribute must be unique, not null and always present within the product element.

To display a key property sheet, double-click its name or its icon in the

Browser tree view.

66

PowerDesigner

Page 78
Image 78
Sybase XML manual Defining a key constraint