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: Foreign key not to enforce when null value

Re: Foreign key not to enforce when null value

From: DA Morgan <damorgan_at_psoug.org>
Date: Mon, 27 Mar 2006 11:26:49 -0800
Message-ID: <1143487601.614974@yasure.drizzle.com>


Nits wrote:
> Hi all,
>
> I want to know is there any way that when I insert null or zero as id,
> it will not check the foreign key constraint, and will check only for
> non-zero and non-null values.
>
> For example when I insert saleamanID in customer table as null or zero
> it still checks in the salesman master for parent key and gives error
> parent key not found.
>
> Thanks
>
> NITIN.
NULL is never checked. NULL is NULL.

-- 
Daniel A. Morgan
http://www.psoug.org
damorgan_at_x.washington.edu
(replace x with u to respond)
Received on Mon Mar 27 2006 - 13:26:49 CST

Original text of this message

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