Oracle TOP N ordered rows

后端 未结 4 611
名媛妹妹
名媛妹妹 2020-12-07 04:15

I would like to get the top N rows from an Oracle table sorted by date.

The common way to do this, and this solution returns for every question I could find on SO/go

4条回答
  •  北海茫月
    2020-12-07 05:19

    Order by may become heavy operation if you have lots of data. Take a look at your execution plan. If the data is not real time you could create a material view on these kind of selects...

提交回复
热议问题