-
Notifications
You must be signed in to change notification settings - Fork 200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
how to use offset in sql #1369
Comments
Hi Gary - OFFSET is not supported yet. We plan to bring it in at some point soon though we can't give you an exact date now. |
“select * from (select row_number() over (order by id desc) rn, * from table) where rn between 1 and 10” |
this is likely quite expensive if the table is large. A better approach is
to use monotonically_increasing_id() function to inject a id column into
your table at load time. And, later use this to select the required range.
…-----
Jags
SnappyData acquired by TIBCO <http://snappydata.io>
Download binary, source <https://www.snappydata.io/download>
On Wed, Aug 28, 2019 at 12:28 AM 吴伟杰 ***@***.***> wrote:
“select * from (select row_number() over (order by id desc) rn, * from
table) where rn between 1 and 10”
it works
李刚大佬好🌚
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#1369>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAOYUBVDUI7ZJ3JWYSP5EELQGYSIFANCNFSM4IGCQNIQ>
.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I want to query data from snappydata using sql, like this:
select * from tableA limit 10, 20;
or
select * from tableA limit 20 offset 10;
and find error.
Does snappydata not support offset ?
The text was updated successfully, but these errors were encountered: