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

Listing table Names from SQL

Status
Not open for further replies.

wuxapian

Programmer
Jun 13, 2001
52
GB
I know this is more of an SQL problem but can anyone tell me how to display a list of tables in the current or a specified database (using SQL).

TIA
Wuxapian...
 
select table_name,owner from all_tables;

or

select table_name from user_tables; for your own.
 
A good way is to use
select * from tab
This is not so overcrowded with informations if you only need the names of tables and views.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top