B.5 Content of SQL_INDEXES
SQL_INDEXES stores index definition information for base tables. It also stores B-tree index definition information for dictionary tables (base tables) and system tables (base tables). Each row stores information for one index.
The following table describes the content of SQL_INDEXES.
No. |
Column name |
Data type |
Stored information |
---|---|---|---|
1 |
TABLE_SCHEMA |
VARCHAR(100) |
Schema name |
2 |
TABLE_NAME |
VARCHAR(100) |
Table identifier of the table for which the index is defined |
3 |
INDEX_NAME |
VARCHAR(100) |
|
4 |
INDEX_ID |
SMALLINT |
Index ID:
|
5 |
TABLE_ID |
SMALLINT |
Table ID of the table for which the index is defined:
|
6 |
COLUMN_COUNT |
SMALLINT |
Number of indexed columns |
7 |
COLUMN_ID_LIST |
VARCHAR(32) |
List of indexed column IDs# |
8 |
CREATE_TIME |
TIMESTAMP |
Datetime stamp for when the index was defined |
9 |
UNIQUE_TYPE |
CHAR(1) |
B-tree index type (whether the index is unique):
|
10 |
FREE_AREA |
SMALLINT |
|
11 |
INDEX_KEY_EXPAND |
CHAR(1) |
Whether the sum total of the sizes of the columns comprising the index is at least 256 bytes:
|
12 |
INDEX_TYPE |
CHAR(1) |
Index type:
|
13 |
IS_PRIMARY_KEY |
CHAR(1) |
Whether an index corresponds to the primary key
The null value is also stored for indexes of dictionary tables (base tables) and indexes of system tables (base tables). |
14 |
IS_CHUNK_SKIP |
CHAR(1) |
Whether a range index can skip chunks
The null value is stored for the following indexes:
|
15 |
IS_EXCLUDE_NULL_VALUES |
CHAR(1) |
Whether null-value exclusion is specified
|
16 |
IS_ARCHIVE_RANGE |
CHAR(1) |
Is range index defined automatically by HADB server?
However, if an archivable multi-chunk table is changed to a regular multi-chunk table, a null value is stored even for range indexes automatically defined by the HADB server. A null value is also stored for the following indexes:
|
17 |
IS_TEXT_CORRECTION_RULE |
CHAR(1) |
Is there a notation-correction-search text-index specification?
A null value is also stored for the following indexes:
|
18 |
IS_TEXT_WORDCONTEXT |
CHAR(1) |
Whether there is a text-index-word-context search specification
A null value is also stored for the following indexes:
|
19 |
TEXT_DELIMITER_TYPE |
CHAR(1) |
Type of text-index delimiter specification
A null value is stored for the following indexes:
|
- #
-
The following figure shows the format of the indexed column ID list.
Figure B‒2: Format of the indexed column ID list