【发布时间】:2020-06-11 11:46:48
【问题描述】:
我正在使用生成以下 Postgresql 查询的工具:
SELECT
"id",
"score"
FROM
"players"
WHERE
"score" > '11266' OR ( "score" = '11266' AND "id" > '4482' )
ORDER BY
"score" ASC,
"id" ASC
LIMIT 3
我需要了解为什么OR 运算符?
我的 players 表可以有很多行,score 相同,id 不同。
当多行具有相同的score 值时,是否需要OR?
【问题讨论】:
-
为该工具点赞,以正确的方式进行分页!
标签: sql database postgresql sorting