Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> on NULLs (was RE: Counterquestion - is Oracle a He or a She - or an It or a hermaphrodite)
Didn't want to sound like I'm making fun of someone's English, so I
changed the subject.
There are two issues to keep in mine here: 1) how do you represent absence of value in your application 2) NULL is not a value, it's an absence of one
The second one is a technical one, and ultimately an abstract one, dealing with the inner workings of the database engine. The first one is a practical one, dealing with the needs that your application has to meet. The first one comes before the second one in my view, because you can in fact create a usable application that doesn't utilize NULL columns.
It can be useful to think about the issue by answering this question first:
How would you get rid of NULL columns?
Both a) and b) have their drawbacks: performance, space wastage and query complexity for a) and likelihood of introducing ambiguity and space wastage for b). There are probably others that I can't think of right now.
NULL is basically a special value (specific to your database engine, _not_ to your application) that means "UNKNOWN" or "DOESN'T EXIST" and it works equally well for all data types, but is especially useful for numbers. Yet using NULL has its drawbacks too: learning curve, performance issues in some situations, and discussions such as the one we are having :)
Max.
-- http://www.freelists.org/webpage/oracle-lReceived on Sat Aug 06 2005 - 05:04:54 CDT
![]() |
![]() |