如果有两个并列第一,两个并列第二:rank()是跳跃排序,结果是1133;dense_rank()是连续排序,结果是1122;row_number连续且唯一,结果是1234。所以dense_rank()最合适。
14

相关推荐

牛客网
牛客企业服务