欧美一区二区三区,国内熟女精品熟女A片视频小说,日本av网,小鲜肉男男GAY做受XXX网站

SQL如何進行多對多表的統計排序分頁查詢

錢衛國2年前11瀏覽0評論

SQL如何進行多對多表的統計排序分頁查詢?

以oracle為例:

SELECT * FROM

(

SELECT A.*, ROWNUM RN

FROM (SELECT rs.student_id,count(1) FROM relationship rs group by rs.student_id order by count(1) desc) A

WHERE ROWNUM <= 10

)

WHERE RN >= 0