Skip to content
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

Open
gangly opened this issue Jul 23, 2019 · 3 comments
Open

how to use offset in sql #1369

gangly opened this issue Jul 23, 2019 · 3 comments

Comments

@gangly
Copy link

gangly commented Jul 23, 2019

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 ?

@kneeraj
Copy link

kneeraj commented Jul 23, 2019

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.

@TeslaCN
Copy link

TeslaCN commented Aug 28, 2019

“select * from (select row_number() over (order by id desc) rn, * from table) where rn between 1 and 10”
it works
李刚大佬好🌚

@jramnara
Copy link
Contributor

jramnara commented Aug 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants