Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null data type
Message
De
06/03/2003 15:31:03
 
 
À
06/03/2003 15:17:06
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
00761393
Message ID:
00762423
Vues:
17
>If you're using FK constraints, you will not be able to have an FK of 0 unless there is actually a row with an ID of 0 in the parent table. OTOH, you can have a FK of NULL.
>
>-Mike
>
>>>>>Hi all,
>>>>>
>>>>>What is the advantage when we allowing Null data type to each data field?
>>>>>
>>>>Aston,

Thanks, Mike.
Then going back to the original question of this thread would you say that it is best to allow Nulls in foreign key fields? Otherwise you would have to maintain a default, meaningless record in the parent.

Regards,
- Glen -

The impossible we do immediately.
The miraculous will take a little longer.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform