我在分页的记录集中注意到一些重复的行.
原文链接:https://www.f2er.com/postgresql/192645.html当我运行这个查询:
SELECT "students".* FROM "students" ORDER BY "students"."status" asc LIMIT 3 OFFSET 0
我得到:
| id | name | status | | 1 | foo | active | | 12 | alice | active | | 4 | bob | active |
下一个查询:
SELECT "students".* FROM "students" ORDER BY "students"."status" asc LIMIT 3 OFFSET 3
我得到:
| id | name | status | | 1 | foo | active | | 6 | cindy | active | | 2 | dylan | active |
为什么“foo”出现在这两个查询中?