select ‘top3‘ as top,news_id,count(1) as counts from (
SELECT
news_id,
pv,
row_number () over (
PARTITION BY statis_date
ORDER BY
pv DESC
) row_num
FROM
author_pv
WHERE
statis_date = ‘${yesterday}‘ and settle_type=2)t1 where t1.row_num between 41 and 60 group by news_id
mysql排序row_number
Posted 贪吃的柳柳
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysql排序row_number相关的知识,希望对你有一定的参考价值。
以上是关于mysql排序row_number的主要内容,如果未能解决你的问题,请参考以下文章