Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

NOT NULL WITH DEFAULT

Status
Not open for further replies.

stoggers

Vendor
May 30, 2001
93
US
Hi,

Just in a position where I have to maintain a database and I find that all the NULLable columns do not have defaults.

I cannot think of any reason why this should be the case and has the implication that any insert statements need to supply values for all columns.

Is there any justificaion for nor having a default?

Regards,

Mike.
 
It is very often the case that NULL columns do not have defaults. A NULL value represents an unknown state. An example I could think of off the top of my head would be a leaving date for an employee records system. Clearly not all employees will have left so the value could reasonably be said to be NULL.

The following gives a reasonable explanation of when you might use NULL without a default.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top