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

要根據字段c排序后取第21—30條記錄顯示

黃文隆2年前15瀏覽0評論

要根據字段c排序后取第21—30條記錄顯示?

1.select * from (select c.*,rownum as rn from (select * from t order by c desc) c) where rn between 21 and 30;

2.select * from (select * from test order by c desc) x where rownum < 30

minus

select * from (select * from test order by c desc) y where rownum < 20 order by 3 desc

二者相比,下邊的Minus性能稍差。