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

Simple Schema

Status
Not open for further replies.

IanWaterman

Programmer
Jun 26, 2002
3,511
GB
I am a beginner SQL programmer.

I am working with an Oracle 8 database which has no schema information.

If I use

desc Tablename

I get the info I need about that table, is there as similar command where I can list and describe all tables. I can then export this to Excel and get a better understanding about tables and realtionships etc.

Thanks in advance

Ian
 
try this.

select 'desc'||table_name||';' from all_tables where owner=whatever database you are interested in.
Redirect this output to a file and run the file as you would do a sqlplus script.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top