日期:2014-05-16 浏览次数:20940 次
select * from (select count(*) cou, t.info_id from t_visit_logs t group by t.info_id order by cou desc) ff where rownum <= 10;
SELECT cou, info_id
FROM (SELECT cou, info_id
FROM (SELECT COUNT (*) cou, t.info_id
FROM t_visit_logs t
GROUP BY t.info_id)
ORDER BY cou DESC)
WHERE ROWNUM <= 10