Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 23 additions & 7 deletions develop/dev-guide-paginate-results.md
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,30 @@ The result is as follows:
To delete all rating records on page 1, replace the `start_key` and `end_key` with values of page 1 in the above result:

```sql
SELECT * FROM ratings
WHERE
(book_id > 268996 AND book_id < 140982742)
OR (
book_id = 268996 AND user_id >= 92104804
SELECT *
FROM ratings
WHERE (
268996 = 140982742
AND book_id = 268996
AND user_id >= 92104804
AND user_id <= 374645100
)
OR (
book_id = 140982742 AND user_id <= 374645100
268996 != 140982742
AND (
(
book_id > 268996
AND book_id < 140982742
)
OR (
book_id = 268996
AND user_id >= 92104804
)
OR (
book_id = 140982742
AND user_id <= 374645100
)
)
)
ORDER BY book_id, user_id;
```
Expand All @@ -330,4 +346,4 @@ Ask the community on [Discord](https://discord.gg/DQZ2dy3cuc?utm_source=doc) or

Ask the community on [Discord](https://discord.gg/DQZ2dy3cuc?utm_source=doc) or [Slack](https://slack.tidb.io/invite?team=tidb-community&channel=everyone&ref=pingcap-docs), or [submit a support ticket](https://tidb.support.pingcap.com/).

</CustomContent>
</CustomContent>