script to describe tables [message #458787] |
Tue, 01 June 2010 19:35 |
reym21
Messages: 241 Registered: February 2010 Location: Philippines
|
Senior Member |
|
|
Good day!
Pls help me how to create a script that will describe only the structure of 150 tables of a database.
I have it just like this, but I cannot produce the name of the table:
spool desctab.sql
select 'desc '||owner||'.'||table_name||'' from all_tables where owner='SKIMA'
order by table_name;
spool off
.. the output of the spool file is something like this:
Name Null? Type
----------------------------------------- -------- -------------
OFC_CODE VARCHAR2(3)
OFFICE VARCHAR2(35)
DESCRIPTION VARCHAR2(50)
REMARKS VARCHAR2(200)
OFFICER VARCHAR2(35)
Thanks in advance.
|
|
|
|
|
|
|