Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Determine Physical Row Number 1

Status
Not open for further replies.

Michael42

Programmer
Oct 8, 2001
1,454
US
Hello,

I know you can user rownum to determine the row number returned of a row in a SQL call.

How can you determine the actual physical row number of a record\row in a table?

Thanks,

Michael42

 
Michael,

Using ROWID can be very useful in certain queries, so it is good to know how to access it:
Code:
select rowid,last_name from s_emp;

ROWID              LAST_NAME
------------------ ------------
AAAEmGAAEAAAAE6AAA Velasquez
AAAEmGAAEAAAAE6AAB Ngao
AAAEmGAAEAAAAE6AAC Nagayama
AAAEmGAAEAAAAE6AAD Quick-To-See
AAAEmGAAEAAAAE6AAE Ropeburn
AAAEmGAAEAAAAE6AAF Urguhart
Let us know if this does what you wanted.

[santa]Mufasa
(aka Dave of Sandy, Utah, USA)
[I provide low-cost, remote Database Administration services: www.dasages.com]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top