× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I just found it...

On page 665 of the IBM i: DB2 For i SQL Reference.

That is where I found the Fetch First clause... and the alternative Limit clause is after the Fetch First definition in a table as a side note.

On 2016-01-13 12:22, Jon Paris wrote:
On Jan 13, 2016, at 11:48 AM, Rob <rob.couch@xxxxxxxxxxxxxx> wrote:

<snip>
I am pleased with their implementation of Limit from MySQL. Would have been great if it had been implemented the same, and not so verbose...

</snip>
Um … it is the same

MySQL - SELECT * FROM Orders LIMIT 10 OFFSET 15 ( or alternatively SELECT * FROM Orders LIMIT 15, 10 )

DB2 - SELECT * FROM Orders LIMIT 10 OFFSET 15 ( or alternatively SELECT * FROM Orders LIMIT 15, 10 )

Darned if I can see a difference.


Jon Paris
www.partner400.com
www.SystemiDeveloper.com



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.