Clarification on “rownum”

前端 未结 3 525
慢半拍i
慢半拍i 2021-01-25 19:27

I have a table Table1


Name     Date
A 01-jun-2010
B 03-dec-2010
C 12-may-2010

When i query this table with the

3条回答
  •  感情败类
    2021-01-25 20:03

    Adding rownums is one of the last things done after the result set has been fetched from the database. This means that the first row will always have rownum 1. Rownum is better used when you want to limit the result set, for instance when doing paging.

    See this for more: http://www.orafaq.com/wiki/ROWNUM

提交回复
热议问题