How can i view tables in the databse

Reply

Join Date: Aug 2008
Posts: 11
Reputation: topsege2007 is an unknown quantity at this point 
Solved Threads: 0
topsege2007 topsege2007 is offline Offline
Newbie Poster

How can i view tables in the databse

 
0
  #1
Aug 14th, 2008
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)
Reply With Quote Quick reply to this message  
Join Date: Nov 2004
Posts: 6,143
Reputation: jwenting is just really nice jwenting is just really nice jwenting is just really nice jwenting is just really nice 
Solved Threads: 213
Team Colleague
jwenting's Avatar
jwenting jwenting is offline Offline
duckman

Re: How can i view tables in the databse

 
0
  #2
Aug 16th, 2008
The following will give you information on all tables:

  1. 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.
Last edited by jwenting; Aug 16th, 2008 at 11:10 am.
As people are clearly allowed to attack me but I'm not allowed to defend myself, I no longer post to this site.
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 11
Reputation: topsege2007 is an unknown quantity at this point 
Solved Threads: 0
topsege2007 topsege2007 is offline Offline
Newbie Poster

Re: How can i view tables in the databse

 
0
  #3
Aug 27th, 2008
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.
Last edited by peter_budo; Aug 29th, 2008 at 7:34 pm. Reason: Keep It Organized - please use [code] tags
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 12
Reputation: iceman29 is an unknown quantity at this point 
Solved Threads: 2
iceman29's Avatar
iceman29 iceman29 is offline Offline
Newbie Poster

Re: How can i view tables in the databse

 
0
  #4
Sep 2nd, 2008
If you are just interested in viewing the names and not the other info about tables, you can use
  1.  
  2. SELECT * FROM tab
Learn to appreciate and appreciate to learn.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Oracle Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC