WHat is DiFferent BetWeen RowNum & RowID | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

WHat is DiFferent BetWeen RowNum & RowID

Give the short and sweet answer

20th Sep 2019, 4:06 AM
Arjun Pawar
Arjun Pawar - avatar
1 Answer
+ 1
The main difference between row number and row Id is:- Just as your home address uniquely identifies where you live, an Oracle ROWID uniquely identifies where a row resides on disk. The information in a ROWID gives Oracle everything he needs to find your row, the disk number, the cylinder, block and offset into the block. The ROWNUM is a "pseudo-column", a placeholder that you can reference in SQL*Plus. The ROWNUM can be used to write specialized SQL and tune SQL.
23rd Sep 2019, 2:46 PM
BHARGAV MODHA
BHARGAV MODHA - avatar