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: Stupid newbie question about foreign keys

Re: Stupid newbie question about foreign keys

From: Mark Cudmore <mcudmore_at_kamloops.env.gov.bc.ca>
Date: 1998/03/06
Message-ID: <1998Mar6.093550.9985@vmsmail.gov.bc.ca>#1/1

check out this table, it holds all the constraints for all the tables under the current user.

select * from user_constraints where constraint_type = 'F' and table_name = 'your table name';

chick*nospam*green_at_gtdev.com wrote in message <34ff40bc.87926561_at_news.gtdev.com>...
>I'm really new to this, but what I need is a script which will list
>all of the foreign keys for a table, and what table and column they
>come from.
>
>Can anyone help me with this?
>
>Thanks, Chick Green
>
>chickgreen_at_gtdev.com
Received on Fri Mar 06 1998 - 00:00:00 CST

Original text of this message

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