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

Range of elements #63

Open
asarch opened this issue Apr 22, 2020 · 1 comment
Open

Range of elements #63

asarch opened this issue Apr 22, 2020 · 1 comment

Comments

@asarch
Copy link

asarch commented Apr 22, 2020

How could I do this query (from PostgreSQL SQL dialect)?

SELECT * FROM student ORDER BY id DESC LIMIT (20-10+1) OFFSET 10;
@asarch
Copy link
Author

asarch commented Apr 23, 2020

(ql:quickload :sxql)

(select :*
  (from (:student))
  (order-by :id (:desc :id))
  (limit (- 20 (+ 10 1)))
  (offset 10))

P.S.

This questions was not for here, it was for SxQL.

Sorry, sorry.

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

1 participant