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: Query to select "check" constraints?

Re: Query to select "check" constraints?

From: Gerard H. Pille <ghp_at_skynet.be>
Date: Thu, 16 Aug 2001 22:45:47 +0200
Message-ID: <3B7C30FB.E650F70B@skynet.be>


Stan Brown wrote:
>
> How can I select the "check" constraints defined at table creation time
> with an SQL query, given the table name.
>
> I would like to know what collumn(s) have check constraints, and what those
> constraints are (as in what are legal values etc).

if you own the table, then you can query user_constraints and user_cons_columns,
user_constraints.constraint_type = 'C'

-- 

Gerard H. Pille
Received on Thu Aug 16 2001 - 15:45:47 CDT

Original text of this message

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