Skip to content

If ORDER BY is not included LIMIT is applied from start of result set, not relative to OFFSET #7

@bgmcmullen

Description

@bgmcmullen

Retrieving 5 rows works as expected: SELECT * FROM table LIMIT 5

But, attempting to get 5 more rows gets no results: SELECT * FROM table LIMIT 5 OFFSET 5

To get rows 6-10 you need to increase the limit to 10: SELECT * FROM table LIMIT 10 OFFSET 5

Instead of retrieving from OFFSET + 1 to OFFSET + LIMIT it retrieves from OFFSET + 1toLIMIT`.

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