You are here: Re: Allow NULL or Define DEFAULT Value « MsSQL Server « IT news, forums, messages
Re: Allow NULL or Define DEFAULT Value

Posted by binder on 10/02/62 11:54

binder wrote:
> I am designing a new table with a few columns that may or may not have
> a value on each row that is inserted.
>
> What issues determine whether to allow a NULL value to be inserted for
> that column or define a default value to be used?
>
> I want to think through the repercussions of this decision before I get
> into production.

>From a programmatic standpoint, if I have a column that may or may not
have a value, is it better to insert a default value that indicates no
value was entered, such as 0 for a userid, or insert a NULL value?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация