Usage of rownum_ function in Oracle

For rownum, it is the number assigned by the oracle system to the rows returned from the query. The first row returned is assigned 1, the second row is 2, and so on. This pseudo field can be used to limit the total rows returned by the query Number, and rownum cannot be prefixed with any table name.

(1) rownum query conditions for a certain value

The rownum in Oracle is the serial number generated when the data is fetched, so you must pay attention to the specified rowmun row data for the specified sorted data. Must use subqueries for sorting

If you want to query the data between rowNum 0-2, as follows:

Guess you like

Origin blog.csdn.net/LOVE_Me__/article/details/104994220