IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

How ro run DB2 EXPLAIN


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
mailsaurabh.tripathi

New User


Joined: 22 May 2008
Posts: 56
Location: hyderabad

PostPosted: Thu Sep 18, 2008 12:43 pm
Reply with quote

can anyone tell me how to run EXPLAIN. I'v created my PLAN_TABLE, but unable to load it using explain.
Back to top
View user's profile Send private message
Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Thu Sep 18, 2008 3:05 pm
Reply with quote

EXPLAIN Planname SET QUERYNO = 1
FOR Query

For selecting the results try this

Select * from plananame where query NO=1
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Sep 18, 2008 3:57 pm
Reply with quote

or in bind package set EXPLAIN(YES)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DB2 Statistics - Using EXPLAIN and qu... DB2 1
No new posts Can someone explain me this JCL line ... JCL & VSAM 9
No new posts DB2 Explain DB2 3
No new posts can some one explain the below code... JCL & VSAM 3
No new posts Please explain this SQL CODE. DB2 4
Search our Forums:

Back to Top