Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Can we limit length in concatenation ... balaji81_k DB2 7 Tue Aug 22, 2017 2:50 am
No new posts Select numeric portion from CHAR data... balaji81_k DB2 6 Sat Aug 19, 2017 1:51 am
No new posts Changeman get multiple "Browse C... elixir1986 Compuware & Other Tools 4 Fri Jul 14, 2017 1:48 am
No new posts SQL - select data available in index Nileshkul DB2 3 Mon Jun 26, 2017 1:30 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us