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

Can we use OPTIMIZE FOR 1 ROWS for fetching first record


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

New User


Joined: 18 Jun 2008
Posts: 54
Location: Colombo

PostPosted: Fri Aug 05, 2016 11:56 am
Reply with quote

Hi,

I have a question. I would like to know if FETCH FIRST 1 ROWS ONLY can be used for fetching 1st row of the table with respect to following query.

SELECT * FROM EMPLOYEE OPTIMIZE FOR 1 ROWS;

Kindly enlighten me. Thanks.


Vijayakumar
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 2578
Location: NYC,USA

PostPosted: Fri Aug 05, 2016 5:11 pm
Reply with quote

Search on Google or this forum or manuals instead of quick answers.

Optimizing retrieval for a small set of rows
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 Writng matched records into output fi... DFSORT/ICETOOL 9
No new posts Compare the file record count percent... DFSORT/ICETOOL 4
No new posts Record count of RECFM=U tape file DFSORT/ICETOOL 17
No new posts Checking the total counts inside a re... JCL & VSAM 5
This topic is locked: you cannot edit posts or make replies. Splice JCL into one record for DD sta... SYNCSORT 2
Search our Forums:

Back to Top