How do you do the EXPLAIN of a dynamic SQL statement?

Answer Posted / mehdee

- When we issue an EXPLAIN as of the BIND like EXPLAIN
(YES), then results to analyze the path will go into 3 DB2
tables: PLAN_TABLE, DSN_STATEMENT_TABLE &
DSN_FUNCTION_TABLE. And you can do:
- select * from fhtdev.plan_table; And columns are
defined in DB2 Developers Guide EXPLAIN.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is dbrm?

645


by using cursors , we can access particular records from the table based on some condition, i want to delete those selected records, how can we write a query for this in the program?

7512


What is a Foreign Key?

656


What os does db2 run on?

572


ther r 2 tables OTTABLE & SALTABLE, add the otamt from OTTABLE to empsal of SALTABLE if eid is matched else add the unmatched from OTTABLE to SALTABLE

1597






what is utility for parm lib

1878


How do I delete a table in db2?

649


Name the lockable units in DB2?

665


Explain the contention situations caused by locks?

592


Which component is responsible for db2 startup and shutdown?

630


What is bind plan?

610


How can you validate Sql errors during cursor operation in db2 pgms and where do you code?

1709


What are db2 objects?

641


What is a db2 collection?

605


What is precompiler in db2?

587