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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: Data specs of columns

RE: Data specs of columns

From: Bob Metelsky <bmetelsky_at_cps92.com>
Date: Fri, 15 Nov 2002 13:58:52 -0800
Message-ID: <F001.00504B8F.20021115135852@fatcity.com>


This is what I ended up doing...

select decode(constraint_type,

	 'C', 'Check Constraint', 
	 'P', 'Primary Key', 
	 'R', 'Foreign Key',
	 'U', 'Unique ',
	 'V', 'With Check Option for view', 
	 'undefined')
	  constraint_name, column_name, ucc.table_name
	 from user_constraints, user_cons_columns ucc
	where ucc.constraint_name = user_constraints.constraint_name ;



> > Look at DBA_CONS_COLUMNS
> >
> > Igor Neyman, OCP DBA
> > ineyman_at_perceptron.com
>
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Bob Metelsky
  INET: bmetelsky_at_cps92.com

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Fri Nov 15 2002 - 15:58:52 CST

Original text of this message

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