标签:article desc row div details 省份 log select class
直观思维来考虑:
把 数据组织成:
国家 省份 出现次数(倒序) 城市
row_number() 根据partition by 生成次序 ,rank_code, 然后用rank_code 做限制
select country_name, province_name, city_name, cnt_num, row_number() over (partition by country_name, province order by cnt_num desc) rank_code from table where rank_code <= 5
https://blog.csdn.net/mori66/article/details/54670204
标签:article desc row div details 省份 log select class
原文地址:https://www.cnblogs.com/gaoss/p/9650645.html