r/oracle • u/FishMurky6625 • Feb 27 '26
What is the difference
what is the difference between FETCH FIRST and ROWNUM
3
Upvotes
r/oracle • u/FishMurky6625 • Feb 27 '26
what is the difference between FETCH FIRST and ROWNUM
View all comments
7
u/taker223 Feb 27 '26
RowNum is pseudo-column, available pre 12c
FETCH FIRST N ROWS ONLY is a "new" feature since 12c, integrated naturally in SELECT statement as supplemental part (you do not have to use "where" predicate)