Add support for OFFSET without LIMIT

51 views
Skip to first unread message

Lukas Eder

unread,
Dec 9, 2015, 9:23:46 AM12/9/15
to H2 Database
Hello there,

Many other databases support using OFFSET without LIMIT:

SELECT *
FROM t
ORDER BY id
OFFSET 10

It's useful, occasionally, and it could be implemented as syntax sugar for this:

SELECT *
FROM t
ORDER BY id
LIMIT [ Long.MAX_VALUE ]
OFFSET 10

What do you think?
Lukas

Noel Grandin

unread,
Dec 10, 2015, 4:34:18 AM12/10/15
to h2-da...@googlegroups.com
sounds reasonable, implemented.

Lukas Eder

unread,
Dec 10, 2015, 5:41:16 AM12/10/15
to h2-da...@googlegroups.com
That was quick, thanks very much! :)

2015-12-10 10:33 GMT+01:00 Noel Grandin <noelg...@gmail.com>:
sounds reasonable, implemented.


--
You received this message because you are subscribed to a topic in the Google Groups "H2 Database" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/h2-database/0CEGaIteUok/unsubscribe.
To unsubscribe from this group and all its topics, send an email to h2-database...@googlegroups.com.
To post to this group, send email to h2-da...@googlegroups.com.
Visit this group at http://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages