what is the steps followed in EXPLAIN Process or EXPLAIN
command. (Explain is for identifying the optimized access
path but how or what is the steps for doing the EXPLAIN)

Answer Posted / sdexcellent@yahoo.co.in

EXPLAIN is used to display the access path as determined by
the optimizer for a SQL statement.
It can be used in SPUFI (for single SQL statement ) or in
BIND step (for embedded SQL ).
plan table should be created under your authid.if its there
then only EXPLAIN can be used in SPUFI.
Output of EXPLAIN can be stored in userid.plantable
in spufi u ve to write the query with ?
select billtn,lpic from xxxx where lpic > ?

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are union and union all?

541


What is lock escalation in db2?

574


List out the three types of page locks that can be held.

689


Which command is used to connect to a database in DB2 ? Give the Syntax.

602


What is dclgen (declaration generator)?

603






What is deadlock in db2?

587


What is db2? Explain.

606


How can you do the explain of a dynamic sql statement?

637


Which components manage deadlocks in db2?

615


I have a subprogram B calling from mainprogram A.I have opened a cursor in A ,Can i fetch the same cursor in subprogram B , If yes , Please explain the reason?

1938


What is a storage group (stogroup)?

778


Explain the contents that are a part of dclgen.

661


What is ibm db2 client?

523


Define db2 and its databases?

622


What is the physical storage length of timestamp data type?

646