|
|
Re: How can I export users table schema to a file. [message #52812 is a reply to message #52805] |
Thu, 15 August 2002 04:49 |
Roar Jorstad
Messages: 1 Registered: August 2002
|
Junior Member |
|
|
This script will list all column with datatype
and length for the table STRM_PERIOD_STATUS.
[[.... Start script ....]]
set linesize 9000
set trimspool on
column owner format a10
column table_name format a20
column column_name format a20
column data_type format a20
spool c:temptable.txt
select owner, table_name, column_name, data_type, data_length
from all_tab_columns
where table_name = 'STRM_PERIOD_STATUS'
order by owner, table_name, column_name ;
spool
spool off
|
|
|
|