SYSKEYS

The SYSKEYS view contains one row for every column of an index in the SQL schema, including the keys for the indexes on the SQL catalog.

The following table describes the columns in the SYSKEYS view:

Table 1. SYSKEYS view
Column Name System Column Name Data Type Description
INDEX_NAME IXNAME VARCHAR(128) Name of the index. This will be the SQL index name if one exists; otherwise, it will be the system index name.
INDEX_OWNER IXCREATOR VARCHAR(128) Owner of the index
COLUMN_NAME COLNAME VARCHAR(128) Name of the column of the key. This will be the SQL column name if one exists; otherwise, it will be the system column name.
COLUMN_POSITION COLNO INTEGER
Nullable
Numeric position of the column in the row.

Contains the null value if the key column is an expression.

ORDINAL_POSITION COLSEQ INTEGER Numeric position of the column in the key
ORDERING ORDERING CHAR(1) Order of the column in the key:
A
Ascending
D
Descending
INDEX_SCHEMA IXDBNAME VARCHAR(128) Name of the schema containing the index.
SYSTEM_COLUMN_NAME SYS_CNAME CHAR(10) System name of the column
SYSTEM_INDEX_NAME SYS_IXNAME CHAR(10) System name of the index
SYSTEM_INDEX_SCHEMA SYS_IDNAME CHAR(10) System name of the schema containing the index
COLUMN_IS_EXPRESSION IXISEXP CHAR(1) If the key column is an expression:
Y
The key column is not an expression.
N
The key column is an expression.
EXPRESSION_HAS_UDF IXEXPUDF CHAR(1)
Nullable
If the key column is an expression and the expression contains a user-defined function:
N
The key column is not an expression or the expression does not contain a user-defined function.
Y
The key column is an expression and the expression contains a UDF.
KEY_EXPRESSION IXKEYEXP DBCLOB(2097152)
CCSID 1200
Nullable
If the key column is an expression, contains the expression.

Contains the column name if the key column is not an expression.