|
|
|
Re: Diff bet Rownum And Rowid [message #137480 is a reply to message #137461] |
Thu, 15 September 2005 06:20 |
d.dineshkumar
Messages: 211 Registered: April 2005 Location: Kolkatta
|
Senior Member |
|
|
hi mhe,
the basic difference i got but whats the difference in the sql statement, as they are giving me the same result so can i use any one of them.
Or is there any restriction.
Thanks
regds
dinesh
|
|
|
|
Re: Diff bet Rownum And Rowid [message #137485 is a reply to message #137481] |
Thu, 15 September 2005 06:31 |
d.dineshkumar
Messages: 211 Registered: April 2005 Location: Kolkatta
|
Senior Member |
|
|
hi Mhe,
One error ORA-01445 I got when i am using ROWID in one sql statement of one of my forms, but if i am replacing it with ROWNUM, the error does not occour.
Then there must be some difference between these two.
With regds
dinesh
|
|
|
|
|
|
|
|
|
Re: Diff bet Rownum And Rowid (ORA-01445 using ROWID in Forms) [message #202426 is a reply to message #137447] |
Thu, 09 November 2006 13:52 |
harleenflora
Messages: 44 Registered: June 2006
|
Member |
|
|
rowid is an internal representation of a row in a table, it is effectively the primary key and can be used for fast access to the row (but can chance)
rownum is a function of a result set of your query, i.e select * from emp where rownum = 1 will get the first row of your result set.
So rowid is a function of the table. rownum is a function of the result set
|
|
|