Select clause [message #373472] |
Wed, 18 April 2001 12:09 |
AV
Messages: 2 Registered: April 2001
|
Junior Member |
|
|
how do i select a table without knowing the table name.
for ex. i know that i am in a schema and i am trying to list out all the existing tables in the schema using select * from tab;
but this does not work. is there any other equal select clause where i can apply and find the table names existing in the schema
|
|
|
|
Re: Select clause [message #373474 is a reply to message #373472] |
Wed, 18 April 2001 12:46 |
Cindy
Messages: 88 Registered: November 1999
|
Member |
|
|
Try this:
select table_name, owner from all_tables;
To exclude all system tables:
select table_name, owner from all_tables
where owner NOT like 'SYS%';
Hope this help.
--Cindy
|
|
|
|
Re: Select clause [message #373482 is a reply to message #373472] |
Wed, 18 April 2001 18:44 |
Raj
Messages: 411 Registered: November 1998
|
Senior Member |
|
|
If you need to select the objects that are in your
schema , do a select on user_tables which retreives only the objects that are in your schema.
|
|
|