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 -> Deferred constraint question

Deferred constraint question

From: Jim Jenkinson <jjenkins_at_castle.net>
Date: Tue, 22 Jun 1999 21:36:23 -0400
Message-ID: <YSWb3.5735$gK.136314@typ22b.nn.bcandid.com>


In Oracle 8.0.5.1, I have defined a table with a foreign key constraint which is DEFERRABLE INITIALLY IMMEDIATE. From within SQL*Plus, I can use the "set constraint" statement to make the constraint deferred for the length of a transaction. This works just as described in the Oracle documentation (i.e. the constraint is not enforced until a commit is issued). I can't figure out how to make the constraint deferred from within PL/SQL, however. Is there a supplied package which sets a constraint to deferrable, just like the "set constraint" statement does?

Any information would be greatly appreciated.

Thank you in advance,

Jim Jenkinson
jjenkins_at_castle.net Received on Tue Jun 22 1999 - 20:36:23 CDT

Original text of this message

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