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

Optimize for n Rows


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

New User


Joined: 09 May 2005
Posts: 51
Location: Singapore

PostPosted: Wed May 11, 2005 12:56 pm
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
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Wed May 11, 2005 3:07 pm
Reply with quote

Hi Friend

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

Regards
Siva
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 To get the count of rows for every 1 ... DB2 3
No new posts Exclude rows with > than x occurre... DFSORT/ICETOOL 6
No new posts Convert single row multi cols to sing... DFSORT/ICETOOL 6
No new posts Compare latest 2 rows of a table usin... DB2 1
No new posts How to compare two rows of same table DB2 11
Search our Forums:

Back to Top