Results 1 to 3 of 3

Thread: Difference between rowid and rownum

  1. #1
    Geek_Guest
    Guest

    Difference between rowid and rownum

    What is the difference between rowid and rownum? How they works, Why we use rowid and rownum? Please tell me in detail with example.

    Question asked by visitor Mitesh


  2. #2
    Junior Member
    Join Date
    Mar 2006
    Answers
    3

    Smile Re: Difference between rowid and rownum

    Quote Originally Posted by Geek_Guest View Post
    What is the difference between rowid and rownum? How they works, Why we use rowid and rownum? Please tell me in detail with example.

    Question asked by visitor Mitesh
    Every row is identified by a rowid. ROWID is pseudo column in every table. The physical address of the rows is use to for the ROWID.IN HEXADECIMAL representation, ROWID is shown as 18 character string of the following format
    BBBBBBBBB.RRRR.FFFF (block,row,file)
    FFFF is the FileID of the datafile that contains the row.
    BBBBBBBBB is the address of the datablock within the datafile that contains the row.
    RRRR is the ROW NUMBER with the data block that contains the row.


    ROWID is the fastest means of accessing data.
    They are unique identifiers for the any row in a table.
    They are internally used in the construction of indexes.


  3. #3
    Junior Member
    Join Date
    Mar 2007
    Answers
    1

    Re: Difference between rowid and rownum

    rowid is the unique index number of every row of table maintaining by database automatically.

    rownum is the sequential number of rows in the resultset object.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact