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: Nulls in Foregn Key

Re: Nulls in Foregn Key

From: Frances Edelstein <rbs_at_super.zippo.com>
Date: 1996/11/19
Message-ID: <MPLANET.3291d7eerbs989685@snews.zippo.com>#1/1

In article <32914DD7.23A1_at_wiztec.co.il>, rasnier_at_wiztec.co.il says...
> Hi all,
>
> In Oracle Data Base I know we can define Nulls in Foregn key in a
> table.
> Is it desirable or should I put a default value for Foreng key
> column in a table in order to avoid null value ?

Does it make sense for the value of the foreign key to be null? You can make the column not null if it isn't.
If null values are appropriate, would there be a lot of searching for records with null values? Searches for null values don't use indexes. Of course, if you decide to use a default, it must exist in the parent table. Received on Tue Nov 19 1996 - 00:00:00 CST

Original text of this message

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