[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Explain Plan in db2



Paul,

The reason I need to optimize the code in sqr is that, for whatever
reason, I don't have access to use 'spoofy' on the mainframe.  Therefor,
in order to optimize code I need to copy it out of one program and place
it in a new program and run just that sql code.  When I do that, I want
to be able to see how the code is hitting the database.

clark

can I use this code somehow within sqr? like within a begin-sql or
something?

EXPLAIN PLAN SET QUERYNO = [unique ID for query, if PLAN_TABLE is empty
you can use a value of 1] FOR [your SELECT statement];



______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com