SYSSTMT catalog table
The SYSSTMT table contains one or more rows for each SQL statement of each DBRM. The schema is SYSIBM.
Column name | Data type | Description | Use |
---|---|---|---|
NAME | VARCHAR(24)
NOT NULL |
Name of the DBRM. | G |
PLNAME | VARCHAR(24)
NOT NULL |
Name of the application plan. | G |
PLCREATOR | VARCHAR(128)
NOT NULL |
Authorization ID of the owner of the application plan. | G |
SEQNO | INTEGER
NOT NULL |
Sequence number of this row with respect to a statement of the plan.Rows in which the values of SEQNO, STMTNO, and SECTNO are zero are for internal use. The numbering starts with zero. | G |
STMTNO | SMALLINT
NOT NULL |
The statement number of the statement in the source program. A statement number greater than 32767 is stored as zero. If the value is zero, see STMTNOI for the statement number. Rows in which the values of SEQNO, STMTNO, and SECTNO are zero are for internal use. | G |
SECTNO | SMALLINT
NOT NULL |
The section number of the statement. Rows in which the values of SEQNO, STMTNO, and SECTNO are zero are for internal use. | G |
IBMREQD | CHAR(1)
NOT NULL |
A value of Y indicates that the row was provided with the Db2 product code. For all other values, see Release dependency indicators. The value in this field is not a reliable indicator of release dependencies. |
G |
TEXT | VARCHAR(3800)
NOT NULL FOR BIT DATA |
Text or portion of the text of the SQL statement. | S |
ISOLATION | CHAR(1)
NOT NULL WITH DEFAULT |
Isolation level for the SQL statement:
|
G |
STATUS | CHAR(1)
NOT NULL WITH DEFAULT |
Status of binding the statement:
|
S |
STATUS |
|
||
ACCESSPATH | CHAR(1)
NOT NULL WITH DEFAULT |
For static statements, indicates if the access
path for the statement is based on user-specified optimization hints.
A value of 'H' indicates that optimization hints were used. A blank
value indicates that the access path was determined without the use
of optimization hints, or that there is no access path associated
with the statement. For dynamic statements, the value is blank. |
G |
STMTNOI | INTEGER
NOT NULL WITH DEFAULT |
If the value of STMTNOI is not zero, the column contains the statement number of the statement in the source program. | G |
SECTNOI | INTEGER
NOT NULL WITH DEFAULT |
The section number of the statement. | G |
EXPLAINABLE | CHAR(1)
NOT NULL WITH DEFAULT |
Contains one of the following values:
|
G |
QUERYNO | INTEGER
NOT NULL WITH DEFAULT –1 |
The query number of the SQL statement in the source program. SQL statements bound prior to Version 7 have a default value of –1. Statements bound in Version 7 or later use the value specified on the QUERYNO clause on SELECT, UPDATE, INSERT, DELETE, EXPLAIN, and DECLARE CURSOR statements. If the QUERYNO clause is not specified, the query number is set to the statement number. | G |
PLCREATORTYPE | CHAR(1)
NOT NULL WITH DEFAULT |
Indicates the type of creator:
|
G |