Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: SQL Script to do a Describe

Re: SQL Script to do a Describe

From: J.P. <jp_boileau_at_yahoo.com>
Date: 28 Mar 2002 11:51:49 -0800
Message-ID: <7e388bc3.0203281151.64f538ec@posting.google.com>


It's all in the user_tab_columns and/or all_tab_columns...

select

   column_name,
   decode(nullable, 'Y', '', 'NOT NULL') Nulls, data_type ||

      '(' || to_char(data_length) ||')' Type from user_tab_columns
where table_name = (mytable)

This should get you close... just replace (mytable) with 'table_i_am_looking_for'

JP

rkg100_at_erols.com (Ryan Gaffuri) wrote in message news:<6757365f.0203280638.3b39a76d_at_posting.google.com>...
> Anyone know where I can grab a SQL script that will format a data
> dictionary query just like a describe? need to get some data
> dictionary data on multiple tables.
>
> Thanks.
Received on Thu Mar 28 2002 - 13:51:49 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US