'Noob'ish Type Question [message #57897] |
Wed, 16 July 2003 12:27 |
doofusboy
Messages: 1 Registered: July 2003
|
Junior Member |
|
|
I know how to get a single table description using:
desc my_table_name
But I need to get the descriptions for 200+ tables with names ending in _SP and really don't want to have to type them out individually.
Any suggestions?
|
|
|
|
Re: 'Noob'ish Type Question [message #57906 is a reply to message #57900] |
Thu, 17 July 2003 14:38 |
sidd
Messages: 130 Registered: May 2003
|
Senior Member |
|
|
if u desc this view u can do it
SQL> desc user_tab_columns
Name Null? Type
----------------------------------------- -------- ----------------------------
TABLE_NAME NOT NULL VARCHAR2(30)
COLUMN_NAME NOT NULL VARCHAR2(30)
DATA_TYPE VARCHAR2(106)
DATA_TYPE_MOD VARCHAR2(3)
DATA_TYPE_OWNER VARCHAR2(30)
DATA_LENGTH NOT NULL NUMBER
DATA_PRECISION NUMBER
DATA_SCALE NUMBER
NULLABLE VARCHAR2(1)
COLUMN_ID NOT NULL NUMBER
DEFAULT_LENGTH NUMBER
DATA_DEFAULT LONG
NUM_DISTINCT NUMBER
LOW_VALUE RAW(32)
HIGH_VALUE RAW(32)
DENSITY NUMBER
NUM_NULLS NUMBER
NUM_BUCKETS NUMBER
LAST_ANALYZED DATE
SAMPLE_SIZE NUMBER
CHARACTER_SET_NAME VARCHAR2(44)
CHAR_COL_DECL_LENGTH NUMBER
GLOBAL_STATS VARCHAR2(3)
USER_STATS VARCHAR2(3)
AVG_COL_LEN NUMBER
then write a cursor to and spool it or whatever u wanna do
|
|
|