Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Can anyboddy explain what is "QUERYNO" in select

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
View previous topic :: :: View next topic  
Author Message
soumyaranjan007

New User


Joined: 30 Aug 2006
Posts: 30
Location: mumbai

PostPosted: Wed Feb 20, 2008 3:56 pm    Post subject: Can anyboddy explain what is "QUERYNO" in select
Reply with quote

Hi,

Query is as like below


EXEC SQL
SELECT
Column 1,
Column 2
Into
:c1,
:c2
from Table_A
where Column 3 = :c3
QUERYNO 15101
END-EXEC.

Thanks
Soumya
Back to top
View user's profile Send private message

CICS Guy

Senior Member


Joined: 18 Jul 2007
Posts: 2150
Location: At my coffee table

PostPosted: Wed Feb 20, 2008 4:29 pm    Post subject:
Reply with quote

Have you looked at the fine manual?
QUERYNO integer
Specifies the number to be used for this SQL statement in EXPLAIN output and trace records. The number is used for the QUERYNO columns of the plan tables for the rows that contain information about this SQL statement. This number is also used in the QUERYNO column of the SYSIBM.SYSSTMT and SYSIBM.SYSPACKSTMT catalog tables.
Back to top
View user's profile Send private message
soumyaranjan007

New User


Joined: 30 Aug 2006
Posts: 30
Location: mumbai

PostPosted: Thu Feb 21, 2008 5:49 pm    Post subject: Reply to: Can anyboddy explain what is "QUERYNO"
Reply with quote

what is the benefits to use QUERYNO ?
Could any one please send me the manual please?
Back to top
View user's profile Send private message
rajeshrs488

New User


Joined: 21 Feb 2008
Posts: 3
Location: Banglore

PostPosted: Thu Feb 21, 2008 5:58 pm    Post subject:
Reply with quote

this is inside the plan table.optimiser tuk the best path
nad also contain the information about the sql statement
Back to top
View user's profile Send private message
acevedo

Active User


Joined: 11 May 2005
Posts: 344
Location: Spain

PostPosted: Thu Feb 21, 2008 6:22 pm    Post subject: Re: Reply to: Can anyboddy explain what is "QUERYNO&qu
Reply with quote

soumyaranjan007 wrote:
what is the benefits to use QUERYNO ?
Could any one please send me the manual please?


search for EXPLAIN in the db2 manuals

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/LIBRARY
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Two Selects in a single select query Rohit Umarjikar DB2 1 Fri Nov 04, 2016 8:46 pm
No new posts Amount field is getting corrupted whe... thesumitk SYNCSORT 5 Tue Oct 18, 2016 8:20 pm
No new posts hot to get details when "EXEC CI... Andi1982 CICS 11 Tue Sep 20, 2016 5:01 pm
No new posts Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts "DFSRRC00 vs IKJEFT01" for ... arunsoods All Other Mainframe Topics 5 Fri Aug 12, 2016 9:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us