954,597 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How can i view tables in the databse

Like the DESCRIBE statement used to view columns in a given table, What SQL statement can i use to view the tables in a database. (Oracle 10g)

topsege2007
Newbie Poster
14 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

The following will give you information on all tables:

select * from sys.ALL_ALL_TABLES;


Many of those of course will be system tables, not application tables.
And depending on the user you are, you may not be able to execute the query (you may not have the privileges) and may not be able to access all tables you get returned.

jwenting
duckman
Team Colleague
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
 

type this command
SELECT * FROM ALL_TABLES . this will enable to view all the tables that yuou have created and the one you granted provilege to view.

topsege2007
Newbie Poster
14 posts since Aug 2008
Reputation Points: 10
Solved Threads: 0
 

If you are just interested in viewing the names and not the other info about tables, you can use

select * from tab
iceman29
Newbie Poster
12 posts since Feb 2008
Reputation Points: 10
Solved Threads: 2
 

try this:

select TABLE_NAME from USERS_TABLES;
good luck (Y)

yisus
Newbie Poster
1 post since Mar 2011
Reputation Points: 7
Solved Threads: 0
 

select * from Tab;

sugat
Newbie Poster
1 post since Apr 2011
Reputation Points: 7
Solved Threads: 0
 

select * from tab

tsfahmad360
Newbie Poster
1 post since Apr 2011
Reputation Points: 7
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You