Oracle view performance with rownum

前端 未结 4 1299
故里飘歌
故里飘歌 2021-01-03 02:15

I am using Oracle 10g, and I have a view that joins two large tables (millions of records). I am trying to select a limited \"sample\" of the data for the user like this:

4条回答
  •  一整个雨季
    2021-01-03 02:30

    You can also try:

    select * FROM 
    (SELECT rownum ROW_NUMBER, YOUR_VIEW.* FROM  YOUR_VIEW) 
    WHERE ROW_NUMBER> 2
    

提交回复
热议问题