Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null
Message
 
À
04/06/2009 11:10:08
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Re: Null
Versions des environnements
SQL Server:
SQL Server 2005
Divers
Thread ID:
01403676
Message ID:
01403683
Vues:
45
>I understand NULLS have a special purpose... but I think I'm starting to abuse it. For example, if we have a text comments area that saves to a varchar field, would it be proper to use NULL if the user left the text area blank, or would it be proper to use a blank string?

I am not a big fan of nullable fields unless it is needed.
I prefer to store an empty string instead of a null.
Some people us nullable fields to indicate that the user did not supply information for that field (did not enter that textbox, if they entered the textbox but didn't type anything then an empty string is stored in the DB).
Just my $0.02. I don't think there is a proper way
Semper ubi sub ubi.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform