Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: How to figure out the relationships between tables by querying view USER_CONSTRAINTS ?
"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
![]() |
![]() |