B.2 Content of SQL_TABLES
SQL_TABLES stores table definition information of base tables, viewed tables, dictionary tables, dictionary tables (base tables), system tables, and system tables (base tables). Each row stores information for one table.
The following table describes the content of SQL_TABLES.
No. |
Column name |
Data type |
Stored information |
---|---|---|---|
1 |
TABLE_SCHEMA |
VARCHAR(100) |
Schema name |
2 |
TABLE_NAME |
VARCHAR(100) |
Table identifier |
3 |
TABLE_TYPE |
CHAR(1) |
Table type:
|
4 |
TABLE_ID |
SMALLINT |
Table ID:
|
5 |
N_COLS |
SMALLINT |
Number of columns in the table |
6 |
N_INDEX |
SMALLINT |
Number of indexes defined for the table (sum of all indexes) |
7 |
CREATE_TIME |
TIMESTAMP |
Datetime stamp indicating when the table was defined. |
8 |
N_NOTNULL |
SMALLINT |
Number of columns for which the NOT NULL constraint is specified |
9 |
FREE_AREA |
SMALLINT |
Percentage of unused area in the table pages |
10 |
FIX_TABLE |
CHAR(1) |
Whether this is a FIX table:
|
11 |
ROW_LENGTH |
SMALLINT |
|
12 |
IS_BRANCH_ALL |
CHAR(1) |
Whether the BRANCH ALL table option is specified:
|
13 |
N_RANGE_INDEX |
SMALLINT |
Number of range indexes defined for a table. |
14 |
IS_CHUNK |
CHAR(1) |
Specification of CHUNK chunk specification
|
15 |
N_CHUNK_RESERVED |
SMALLINT |
|
16 |
N_DEFAULT_COLUMN |
SMALLINT |
|
17 |
N_PRIMARY_KEY_COLUMN |
SMALLINT |
|
18 |
N_FOREIGN_KEY |
SMALLINT |
|
19 |
N_REFERENCING_KEY |
SMALLINT |
|
20 |
N_FOREIGN_KEY_COLUMN |
SMALLINT |
|
21 |
N_TEXT_INDEX |
SMALLINT |
|
22 |
IS_ARCHIVABLE |
CHAR(1) |
Is there a chunk archive specification?
The null value is stored for the following tables:
|
23 |
ARCHIVE_DIRECTORY_PATH |
VARCHAR(400) |
|
24 |
RECREATE_TIME |
TIMESTAMP |
|
25 |
STORAGE_FORMAT |
VARCHAR(32) |
Table-data storage format
In the case of a viewed table, a null value is stored. |