Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
Optimize for n Rows

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
kvivek

Active User


Joined: 09 May 2005
Posts: 51
Location: Singapore

PostPosted: Wed May 11, 2005 12:56 pm    Post subject: Optimize for n Rows
Reply with quote

Hi All,

In the Cursor if we specify OPTIMIZE FOR First 20 ROWS, Does it mean that we could fetch only the First 20 rows and when I try to fetch the 21st record Will it throw End of cursor?

If it is not, what exactly happens when we write OPTIMIZE FOR N ROWS?

Thanks,
Vivek
Back to top
View user's profile Send private message
References
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 167
Location: hyderabad

PostPosted: Wed May 11, 2005 3:07 pm    Post subject: Re: Optimize for n Rows
Reply with quote

Hi Friend

i suppose there may not be any error in trying to retrieve the 21st row...
check the site
https://aurora.vcu.edu/db2help/db2d0/frame3.htm#db2d0168

Regards
Siva
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1