Views : 246  |
Rownum :- Rownum is a pseudocolumns. A pseudocolumn behaves like a table column but is not actually stored in the table. You cannot insert or delete values of the pseudocolumns.
For each row returned by a query, the ROWNUM pseudocolumn returns a number indicating the order in which Oracle server selects the row from a table or set of joined rows. The first row selected has a ROWNUM of 1, the second has 2, and so on.Rownum can be used to limit the number of rows retieved. Example SELECT empno, ename, job FROM emp WHERE ROWNUM < 5; Output empno | ename | job 7521 | WARD | SALESMAN 7566 | JONES | MANAGER 7654 | MARTIN | SALESMAN 7698 | BLAKE | MANAGER (4 rows) |
|
|
| Users' Comments |
|
Average user rating
(0 vote)
|
|
Add your comment
|
rownum are very usefula feature
By: amal (Registered) on 05-10-2008 19:15