Skip to content

Pagination on Selection not working as expected #8770

@darktaiga01

Description

@darktaiga01

I have some problem about using LIMIT clause for paginating. I query this statement
select * from baseballStats order by yearID desc limit 0, 20
It returns first 20 rows of the result. And it's fine. But when I want to query this statement
select * from baseballStats order by yearID desc limit 200,300
image
It return first 300 rows of the result (0 to 300) but I want it return from offset 200 to 300
I've tried some statement as following
select * from baseballStats order by yearID desc limit 87000,88000
image
And it return last 10889 rows (from offset 87000 to 97889 and 97889 is number of rows in my table)

Did I use it incorrectly, or is this feature not working as I understand?
Thanks for reading.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions