Function of IndexTable
Describes all indexes on the tables specified by the query.
IndexTable Table Definition
The following CREATE TABLE request defines IndexTable:
CREATE TABLE IndexTable ( IndexNum INTEGER NOT NULL, RelationKey INTEGER NOT NULL, OrderBy CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, AccessInfo CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, Field1Only CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, RangeConstraint CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC NOT NULL, IndexFlag CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC, IndexName VARCHAR128 CHARACTER SET UNICODE NOT CASESPECIFIC, IndexType CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC, UniqueFlag CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC, IndexKind CHARACTER(1) CHARACTER SET LATIN NOT CASESPECIFIC, NumNulls FLOAT, NumIntervals INTEGER, MinValue VARCHAR(512) CHARACTER SET UNICODE NOT CASESPECIFIC, ModeValue VARCHAR(512) CHARACTER SET UNICODE NOT CASESPECIFIC, ModeFreq FLOAT, TotalValues FLOAT, TotalRows FLOAT) PRIMARY INDEX (RelationKey) UNIQUE INDEX USK_IdxNum_RelationKey ( IndexNum, RelationKey );
Attribute Definitions for IndexTable
The following table defines the IndexTable table attributes:
Attribute | Description |
---|---|
IndexNum |
|
RelationKey |
|
OrderBy | Defines whether the index has an associated ORDER BY clause.
|
AccessInfo | Specifies if the index is a covering index, bit map, or neither.
|
Field1Only | Defines whether the index is a join index and Field1 is the only part needed.
|
RangeConstraint | Flag for value-ordered indexes that have a range constraint used by the query plan.
|
IndexFlag | Flag indicating whether the index was used in the query plan.
|
IndexName |
|
IndexType | A code indicating the type of the index.
|
UniqueFlag | Code indicating whether the index is unique or nonunique.
|
IndexKind | Code indicating whether the index is permanent or simulated.
|
NumNulls | The number of nulls in the index. |
NumIntervals | The number of intervals in the index statistics. |
MinValue | The minimum value of the index. This is obtained from statistical histogram interval 0 for the index. |
ModeValue | The value of the index that occurs the most in the table. This is obtained from statistical histogram interval 0 for the index. |
ModeFreq | The number of times the modal value occurs in the index. |
TotalValues | The total number of values in the index other than the modal value. |
TotalRows | The cardinality of the table. |