Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Any side effects in allowing NULL?
Message
De
30/03/2012 14:50:23
 
 
À
30/03/2012 14:34:21
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Divers
Thread ID:
01539772
Message ID:
01539859
Vues:
63
>In some cases null is a must. Consider a lab result, where null means "was not done", and zero means "done, none found".

IMHO, this business logic should never be used like that. A status field should be used, which allows, by the same, the possibility of additional status.

So far, I haven't found any use to have NULLs in table. The only place I wasn't able to get rid of that, and only discovered last week, is the new Geography spatial data type of SQL Server which doesn't allow to put something else in there than a spatial data type data or NULL. So, I had to adjust my framework last week to take care of that exception, which in this case, when I create a record, for a table having a Geography field, I would allow NULL.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform