SELECT
score,
remarks,
rank () over (
PARTITION BY remarks
ORDER BY
score DESC
) AS 'Rank'
FROM
score;
注意:照某字段的排序结果添加排名,但它是跳跃的、间断的排名
SELECT
score,
remarks,
rank () over (
PARTITION BY remarks
ORDER BY
score DESC
) AS 'Rank'
FROM
score;
注意:照某字段的排序结果添加排名,但它是跳跃的、间断的排名