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

how to select table name?

Status
Not open for further replies.

darwin101

Programmer
Mar 7, 2001
156
US
Could someone tell me how/if it is possiable to select the table name from oracle in a report type query? It would be great to also include the schema name.

Thanks for your help.
 
Maybe I'm misinterpreting your question, but I've sometimes found it useful to select the table name as a literal, so that I can easily identify which table my query is coming from.

select 'MYID' as schema_name, 'MY_TABLE' as table_name,
col1, col2, ... from my_table;
 
Thats what I am trying not to do. I guess I should just use that method as it is 6 one way or half a dozen the other.
Thanks for responding :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top