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 -> conditional foreign key constraint

conditional foreign key constraint

From: Cookie Monster <cookie.monster_at_somewhere.com>
Date: Wed, 14 Jan 2004 15:30:01 +0100
Message-ID: <bu3jpb$d4i6h$1@ID-82797.news.uni-berlin.de>


Hi,

I want to create a foreign key constraint which is only checked when a certain value in one of the field is set. such that I have a field called STATUS and when the value equals 1 then my foreign key is active on that row. I guess this is not really possible without a trigger but a trigger would take forever as I have thousands of rows. has anyone had something similar and has an idea of how I could perhaps do this.

Thanks in advance
cookie. Received on Wed Jan 14 2004 - 08:30:01 CST

Original text of this message

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