Home » RDBMS Server » Server Administration » Select clause
Select clause [message #373472] Wed, 18 April 2001 12:09 Go to next message
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 #373473 is a reply to message #373472] Wed, 18 April 2001 12:45 Go to previous messageGo to next message
Jaco
Messages: 23
Registered: August 2000
Junior Member
SELECT OWNER,TABLE_NAME,TABLESPACE_NAME FROM ALL_TABLES;

JACO
Re: Select clause [message #373474 is a reply to message #373472] Wed, 18 April 2001 12:46 Go to previous messageGo to next message
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 #373477 is a reply to message #373472] Wed, 18 April 2001 15:06 Go to previous messageGo to next message
Andrew again...
Messages: 270
Registered: July 2000
Senior Member
select * from cat;
Re: Select clause [message #373482 is a reply to message #373472] Wed, 18 April 2001 18:44 Go to previous message
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.
Previous Topic: question
Next Topic: migration of SYBASE to ORACLE - UPDATE command
Goto Forum:
  


Current Time: Mon Dec 23 10:05:34 CST 2024