Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Null
Message
De
04/06/2009 15:27:55
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
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:
01403788
Vues:
48
>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?

Someone said that "nulls are evil" which I do agree. IMHO do not use a NULL for such a case and reserve to places where it does have meaning (do you really care difference between a comment that is null or blank - what would be an entered and blank comment? a space? Ugly ugly ugly).
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform