Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: Foreign key not to enforce when null value
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
![]() |
![]() |