MySQL的分组,降序 实现

1.要求,性别分组 , 然后数据使用量的降序排列 , 采用了,row_number() over (partitionrown by class order by score desc ) as rank

--注意,会生成排名,如果想要去掉 , 嵌套查询就可以了.

 

猜你喜欢

转载自www.cnblogs.com/alpha-cat/p/12094519.html