HP Neoview SQL Reference Manual page 130

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

key_columns ............ R_KEY
begin_key .............. (R_KEY = <min>
end_key ................ (R_KEY = <max>
---SQL operation complete.
Machine-Readable [OPTIONS 'm'] Considerations
The machine-readable format also displays all of the plan data, but in a format easy to process
by programs, one line per operator. This option provides the same output as the EXPLAIN
function, but uses a different command to obtain the output. Each line is about 4000 characters
long. This format makes the output of this mode difficult for humans to read (which is why it is
called machine readable.) The advantage of this format is that the results can be easily stored,
retrieved, and manipulated by SQL statements. For additional information about the EXPLAIN
function, see the
see the Neoview Query Guide.
The fields of the OPTIONS 'm' output are slightly different than the fields shown in OPTIONS
'n' and 'e' output:
Column Name
MODULE_NAME
STATEMENT_NAME
PLAN_ID
SEQ_NUM
OPERATOR
LEFT_CHILD_ SEQ_NUM
RIGHT_CHILD_ SEQ_NUM
TNAME
CARDINALITY
OPERATOR_COST
TOTAL_COST
130
SQL Statements
"EXPLAIN Function" (page
Data Type
CHAR(60)
CHAR(60)
LARGEINT
INT
CHAR(30)
INT
INT
CHAR(60)
REAL
REAL
REAL
401). For information about a use for this format,
Description
Reserved for future use.
Statement name; truncated on the right if longer than
60 characters.
Unique system-generated plan ID automatically
assigned by SQL; generated at compile time.
Sequence number of the current operator in the operator
tree; indicates the sequence in which the operator tree
is generated.
Current operator type. For a full list of valid operator
types, see the Neoview Query Guide.
Sequence number for the first child operator of the
current operator; null if operator has no child operators.
Sequence number for the second child operator of the
current operator; null if operator does not have a second
child.
For operators in scan group, full name of base table,
truncated on the right if too long for column. If
correlation name differs from table name, simple
correlation name first and then table name in
parentheses.
Estimated number of rows that are returned by the
current operator. Cardinality appears as
ROWS/REQUEST in some forms of EXPLAIN output.
For the right child of a nested join, multiply the
cardinality by the number of requests to get the total
number of rows produced by this operator.
Estimated cost associated with the current operator to
execute the operator.
Estimated cost associated with the current operator to
execute the operator, including the cost of all subtrees
in the operator tree.

Advertisement

Table of Contents
loading

Table of Contents