Created
January 5, 2019 07:49
-
-
Save ahmad-moussawi/892334d4f0d84503700eb33b105ce634 to your computer and use it in GitHub Desktop.
Pagination in multiple databases
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM ( | |
SELECT "subquery".*, ROWNUM "row_num" FROM ( | |
SELECT "id", "name" from "Users" | |
) "subquery" WHERE ROWNUM <= 20 | |
) WHERE "row_num" >= 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment