Quantcast
Channel: IBM Mainframe Computers Forums
Viewing all articles
Browse latest Browse all 9405

DB2 :: Can we use OPTIMIZE FOR 1 ROWS for fetching first record

$
0
0
Author: cvijay784
Subject: Can we use OPTIMIZE FOR 1 ROWS for fetching first record
Posted: Fri Aug 05, 2016 11:56 am (GMT 5.5)

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


Viewing all articles
Browse latest Browse all 9405

Trending Articles