| Oracle FAQ | Your Portal to the Oracle Knowledge Grid | |
Home -> Community -> Usenet -> comp.databases.theory -> Re: 3 value logic. Why is SQL so special?
Gene Wirchenko schrieb:
> Volker Hetzer <firstname.lastname_at_ieee.org> wrote: >
values I just mix up application defaults with database values. Btw, the example I gave was the most complex one for when default values don't work for the application. Normally, if I'm concerned about NULLs I select nvl(expr,<DEFAULT>)... for the client app and select expr for database internal work (like insert into ... select ...) b) as soon as I've got an outer join, I've got NULLs anyway. And even if NULL would
be replaced by a bit of SQL syntax, every application, table, view, coder, company could have its own default value, which might even change over time. Which is hard to maintain and to code.
> Now, you
> have to check everything for NULL. Quite the mess.
Otherwise I'd have to check for the default value.
Worse, the default value may be different depending on what application
accesses the data (0, -1, INT_MIN, INT_MAX, ''), so it IMHO makes sense to store
an universally valid default. Which NULL happens to be.
>>> For one thing, NULL is
>>> *NOT* a value. It is the absence of a value.
>> Conceptually, so is any other default value. Only, with NULL, the database agrees.
>
That's why I wrote "conceptually". Both express a "not filled in", albeit one with
database support and one without it.
>
By the way, before I exit this thread (I'm not that proficient in theory), has anything changed between Date/Codd's original arguments and today?
Lots of Greetings!
Volker
-- For email replies, please substitute the obvious.Received on Mon Sep 18 2006 - 15:54:10 CDT
![]() |
![]() |