15.00 - UNIQUE Constraint Attributes - Teradata Database

Teradata Database SQL Data Definition Language Detailed Topics

prodname
Teradata Database
vrm_release
15.00
category
Programming Reference
featnum
B035-1184-015K

UNIQUE Constraint Attributes

The following table lists the attributes reported as the result of a HELP CONSTRAINT request for a unique constraint. You can also issue a HELP CONSTRAINT against an index, which the system considers as a constraint.

 

Attribute

Data Type

Nullable

Description

Name

VARCHAR(30)

No

The name of the constraint about which HELP information is being reported.

Type

VARCHAR(35)

No

The type of constraint.

PRIMARY INDEX specifies that the constraint is a primary index.

Other values that include VALIDTIME and TRANSACTIONTIME refer to constraints on temporal tables.

See ANSI Temporal Table Support and Temporal Table Support for information about constraint types for temporal tables.

Unique

CHARACTER

No

Reports whether the index or constraint is unique.

  • Yes indicates the constraint or index is unique
  • No indicates that the constraint or index is not unique
  • Index ID

    SMALLINT

    No

    Internal identifier for the index assigned by the system, which implements unique constraints as indexes.

    Column Names

    VARCHAR(512)

    No

    Lists the names of columns for the constraint.

    Note: The system converts each column name, including substitution characters, to its full length. If the constructed list of column names exceeds the maximum length of the Column Names field, the list is truncated after the last comma separator that can fit within the field.

    Dictionary Name

    VARCHAR(128)

    No

    The attributes shown in this section are derived from and supersede the corresponding older Name attribute, while providing additional functionality.

    The Name attribute is retained for compatibility with existing applications.

    For details on the new attributes, see “Working with Object Name and Title Data in HELP Reports” on page 896.

    SQL Name

    VARCHAR(644)

    UEscape

    VARCHAR(1)

    Yes