Quantcast
Channel: What's wrong with Nulls? - Stack Overflow
Browsing all 6 articles
Browse latest View live

Answer by Erwin Smout for What's wrong with Nulls?

One, nulls lead you into the realm of some 3-valued logic. "Some" logic, because there can be many (one of the possible differences is how logical implication is defined exactly). Anyhow, whatever...

View Article



Answer by Esteban Martinez for What's wrong with Nulls?

NULL is wrong only if it the consequence of a poor database design, or if its purpose is unclear or ambiguous. For example, suppose that your database contemplates addresses per user and you create...

View Article

Answer by Jacob for What's wrong with Nulls?

As so often happens in computer science, this is not as simple as "never use feature X".The basic theory is that a SQL NULL is not supposed to be a value taken on by a field---instead, it indicates...

View Article

Answer by user unknown for What's wrong with Nulls?

That's too simple. In many cases you don't know - for example - if a person has children. NumberOfChilds = 0 means: He has zero children, NULL means: you don't know. But if you can make information...

View Article

Answer by Jakob Alexander Eichler for What's wrong with Nulls?

If you do not allow null values, you ensure that you only have complete saved data. Data with nulls makes working with the data difficult for you. For example if you have books to display, it will lead...

View Article


What's wrong with Nulls?

I've been told that it's not good design to allow nulls in field definitions... I know it can cause errors... but can somebody please elaborate and explain under which circumstances I shouldn't allow...

View Article
Browsing all 6 articles
Browse latest View live




Latest Images