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

Home -> Community -> Usenet -> c.d.o.misc -> Re: Master/Detail links: Where in system tables???

Re: Master/Detail links: Where in system tables???

From: Martin Jesterhoudt <martinj_at_worldonline.nl>
Date: 1997/08/11
Message-ID: <33ef778f.1090538@news.worldonline.nl>#1/1

On Mon, 11 Aug 1997 11:21:48 -0600, stevec_at_zimmer.csufresno.edu (Steve Cosner) wrote:

>I am working on a utility to access a master table and its detail tables
>automatically, so I need to query Oracle's system tables to determine
>which columns are used to link a detail table to its master table. Is
>there such a system table in Oracle that stores this data?
>
>I have little experience with master/detail links and referential
>integrity. Anyone's help will be greatly appreciated!

If your database is built up relationally, you can always use the constraint tables (user_constraints and user_cons_columns) to follow the link between to tables. The constrainttype would then be 'R' from relational.

Hope this helps.


Received on Mon Aug 11 1997 - 00:00:00 CDT

Original text of this message

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