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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need Tablename for given Rowid

Status
Not open for further replies.

Bimalaggarwal

Programmer
May 17, 2002
76
CH
I have a rowid.
I want to know the table name which has its record belonging to this rowid.
I do not wish to go over ALL_TABLES and run full table scans for each table to find a matching rowid.

Is there a fast and simple way to do this ?
 
You can do this with the dbms_rowid package:

select owner, object_name from all_objects
where object_id = dbms_rowid.rowid_object('your rowid here');
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top