DB2-Limit SQL Query
This is and example on how to limit a no of lines to display during DB2 SQL Query.
SELECT * FROM TEST.CUSTOMER WHERE LASTNAME='SMITH' FETCH FIRST 10 ROWS ONLY;
SELECT * FROM TEST.CUSTOMER WHERE LASTNAME='SMITH' FETCH FIRST 10 ROWS ONLY;
3 Comments:
Thanks man this really simplified my search :)
you're welcome. nice to know that my blog did actually helped someone :p
Hi,
This query always return row set from
beginning.But I want to implements paging facility.So how can I retrieve middle row set with this.
Thanks,
Sampath
Post a Comment
<< Home