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: How to figure out the relationships between tables by querying view USER_CONSTRAINTS ?

Re: How to figure out the relationships between tables by querying view USER_CONSTRAINTS ?

From: Sybrand Bakker <postbus_at_sybrandb.demon.nl>
Date: Mon, 9 Jul 2001 05:42:03 +0200
Message-ID: <tki9s9kmgenv73@beta-news.demon.nl>

"Jennifer Chang" <jchang_at_uxb2b.com> wrote in message news:9ib7ts$9mp$1_at_news.seed.net.tw...
> Hi,
> I want to figure out the relationships between a couple tables. The
 only
> thing I knew was to query USER_CONSTRAINTS,
> but all I got were names of constraints, not the column names of primary
> key/foreign key of a table.
> Please help, thank you very much.
>
>
> Jennifer Chang
>
>

Column names are in user_cons_columns
You can easily join user_constraints and user_cons_columns for the correct info.

Hth,

Sybrand Bakker, Senior Oracle DBA Received on Sun Jul 08 2001 - 22:42:03 CDT

Original text of this message

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