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: Foreign keys in Oracle

Re: Foreign keys in Oracle

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 16 Apr 2007 08:22:06 -0700
Message-ID: <1176736918.271724@bubbleator.drizzle.com>


valigula wrote:

>> Sounds like you might be able to achieve this with a multitable
>> insert, using "INSERT FIRST" and multiple WHEN clauses, driven off an
>> outer join of the source and target tables.

>
> Thanks ...
> How i can capture the exception raise, when the Fk is broken???

SELECT owner, constraint_name
FROM dba_constraints
WHERE constraint_type = 'R'
AND invalid IS NOT NULL;

-- 
Daniel A. Morgan
University of Washington
damorgan_at_x.washington.edu
(replace x with u to respond)
Puget Sound Oracle Users Group
www.psoug.org
Received on Mon Apr 16 2007 - 10:22:06 CDT

Original text of this message

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