rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint → bigint计算假设行的排名,允许空缺;即该行所属同等行组中第一行的行号。
rank
计算假设行的排名,允许空缺;即该行所属同等行组中第一行的行号。
英文手册覆盖始于 PostgreSQL 7.1. 来源历史与运行验证各自保留独立版本边界。
当前阅读 PG 18·选择有来源记录的版本
- group
- aggregate
- group label
- Aggregate Functions
- lang
- en
- layout
- table-new
- pages
- functions-aggregate.html, functions-window.html
- prose only
- false
- zh from
- 未知
版本定义 PG 18
计算假设行的排名,允许空缺;即该行所属同等行组中第一行的行号。
rank ( args ) WITHIN GROUP ( ORDER BY sorted_args ) → bigint计算假设行的排名,允许空缺;即该行所属同等行组中第一行的行号。
rank () → bigint返回当前行的排名,允许空缺;即同等行组中第一行的
row_number。函数签名与重载
rank () → bigint → bigint返回当前行的排名,允许空缺;即同等行组中第一行的
row_number。比较版本
来源引用
定义来源
center · PostgreSQL 18 · b7bd9cda
正文语言: zh-Hans · 1b5ca64c