SQL/MX 3.2.1 Query Guide (H06.26+, J06.15+)

SQL/MX Operators
HP NonStop SQL/MX Release 3.2.1 Query Guide663851-003
7-34
INSERT Operator
INSERT Operator
INSERT Group
The INSERT operator describes that part of an execution plan that inserts a new row
into a table. The operator for an INSERT operator is always INSERT.
The INSERT operator has no child nodes. The description field for this operator
contains the following:
The following is an example of the INSERT operator:
PREPARE TestQuery8 FROM
INSERT INTO custss SELECT *
FROM customer
WHERE c_nationkey IN (1,3,7,8,10,15,18,20,22,44);
DESCRIPTION
fragment_id ............ 3
parent_frag ............ 0
fragment_type .......... dp2
olt_optimization ....... not used
olt_opt_lean ........... not used
iud_type ............... insert DETCAT.DETSCH.CUSTSS
lock_mode .............. not specified, defaulted to lock
Token Followed by ... Data Type
fragment_id A sequential number assigned to the fragment.
0 is always the master executor and 1 is
reserved for the EXPLAIN plan. Numbers 2 to n
will be ESP or DAM fragments.
integer
parent_frag The fragment_id for the parent of the current
fragment. The value is (none) for the master
executor.
integer
fragment_type Master, ESP, or DP2. text
new_rec_expr Computation of the row to be inserted. expr(text)
olt_optimization Indicates whether an optimization for short,
simple operations is used. Its value is used or
not used.
text
olt_opt_lean Indicates for short, simple operations whether a
further optimization that reduces the physical
size of the plan is used. Its value is used or
not used.
text
part_key_predicate Predicate expression specified on the
partitioning key. Displayed only if partitioning
key differs from clustering key.
expr(text)
iud_type Type of insert followed by table or index name. expr(text)
check_constraint Check constraints in the insert table. expr(text)
TP663851.fm Page 34 Wednesday, January 30, 2013 5:37 PM