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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Difference between DESC & user_tab_columns

Re: Difference between DESC & user_tab_columns

From: DA Morgan <damorgan_at_x.washington.edu>
Date: Fri, 22 Oct 2004 18:17:39 -0700
Message-ID: <1098494205.4510@yasure>


Praveen wrote:

>
> ------------------------------------------------------------------------
>

desc <table_name>

SELECT column_name, DECODE(nullable, 'N', 'NOT NULL', NULL) "Null?", data_type || '(' || data_length || ')' TYPE FROM user_tab_columns
WHERE table_name = <table_name>

No difference except a column title and that's easily fixed.

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace 'x' with 'u' to respond)
Received on Fri Oct 22 2004 - 20:17:39 CDT

Original text of this message

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