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 referential constraints

Re: query referential constraints

From: Sybrand Bakker <postmaster_at_sybrandb.demon.nl>
Date: Wed, 2 Feb 2000 00:01:43 +0100
Message-ID: <949446229.4811.0.pluto.d4ee154e@news.demon.nl>


The columns are in dba_cons_columns
You will also need to look at constraint_type P means primary
C means check, the constraint is in the column search_condition R is foreign key, the referenced primary key constraint is in r_constraint_name.

Hth,

--
Sybrand Bakker, Oracle DBA
Hop Pham <pham_hop_at_bah.com> wrote in message news:389785C6.D67197BD_at_bah.com...
> Hi,
>
> How do I extract information about about a schema object's referential
> constraints? DBA_CONSTRAINTS view only provides a list of constraint
> names without explicitly identifying the referenced columns. I suppose
> that this will be a joint between DBA_CONSTRAINTS and DBA_INDEXES. I am
> looking for a way to duplicate all constraints from a schema to
> another. Thanks.
>
> Hop Pham
> pham_hop_at_bah.com
>
Received on Tue Feb 01 2000 - 17:01:43 CST

Original text of this message

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