Machine-Readable [Options 'M'] Considerations - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

FILE_SCAN =================================
TABLE_NAME ............... TPCH2X_CAT.TPCH2X_SCH.REGION
REQUESTS_IN .............. 1
ROWS_OUT ................. 5
EST_OPER_COST ............ 0.0092
EST_TOTAL_COST ........... 0.0092
cpu_cost ............... 0.0003
io_cost ................ 0.0089
msg_cost ............... 0
idle_cost .............. 1.1025
DESCRIPTION
fragment_id ............ 2
parent_frag ............ 0
fragment_type .......... dp2
scan_type .............. full scan of table TPCH2X_CAT.TPCH2X_SCH.REGION
scan_direction ......... forward
lock_mode .............. not specified, defaulted to lock cursor
access_mode ............ not specified, defaulted to read committed
columns_retrieved ...... 3
fast_scan .............. used
fast_replydata_move .... used
key_columns............. R_REGIONKEY
begin_key............... (R_REGIONKEY = <min>)
end_key................. (R_REGIONKEY = <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
110
SQL Statements
"EXPLAIN Function" (page
Data Type
CHAR(60)
CHAR(60)
LARGEINT
INT
CHAR(30)
INT
INT
SEQ_NO 1
339). 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.
NO CHILDREN

Advertisement

Table of Contents
loading

Table of Contents