KI_CREATE_PRIMARY_KEY_CONSTRAINT

Create a primary key on a table

Synopsis:
CALL KI_CREATE_PRIMARY_KEY_CONSTRAINT handle TO status
status = 'ki_create_primary_key_constraint( handle )
ArgumentEnumerationPurpose
handleHandle
statusKDB_ERROR_ENUMReturn status
>KI_CREATE_PRIMARY_KEY_CONSTRAINT

KI_CREATE_PRIMARY_KEY_CONSTRAINT

This call creates a PRIMARY KEY constraint for a table based on its first index. The effect is the same as if _KDB_CONN_ATTR_CREATE_PRIMARY_KEYS was enabled when the index was created.

Requirements

Compatibility note:

This call is only supported on Oracle databases.

History
Introduced in KCML 7.17
See Also:
KI_DELETE_PRIMARY_KEY_CONSTRAINT
KCML database status codes