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 we use OPTIMIZE FOR 1 ROWS for fetching first record

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Can we use OPTIMIZE FOR 1 ROWS for fetching first record
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

Senior Member


Joined: 21 Sep 2010
Posts: 2179
Location: NY,USA

PostPosted: Fri Aug 05, 2016 5:11 pm    Post subject:
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    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 Removing duplicate record based on th... Nilanjan Sikdar DFSORT/ICETOOL 5 Mon Jul 22, 2019 8:29 pm
No new posts Deleting rows using utility from DB2 ... manugeorge2004 DB2 2 Tue Jun 25, 2019 6:41 pm
No new posts how to add date & timestamp to th... dharmaraok DFSORT/ICETOOL 5 Thu Apr 18, 2019 2:45 pm
No new posts files whose record count varies with ... janmejay CA Products 0 Fri Mar 08, 2019 9:35 pm
No new posts calculate the record count and based ... naveensrimf DFSORT/ICETOOL 1 Tue Jan 08, 2019 11:20 pm

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