Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: Oracle NULL vs '' revisited
On Aug 17, 10:49 am, Matthew Harrison <m.harris..._at_craznar.com> wrote:
> Ok, I'm developing another oracle application where the distinction
> between NULL and '' will be important.
>
> Given Oracle doesn't adhere to SQL standards for the distinction, is
> there any best practices for comparing, and storing blank strings in a
> table where the field is conceptually NOT NULL.
Having problems with "where the field is conceptually NOT NULL"?
Well it's either defined as NOT NULL in the database or it will allow nulls.
Why don't you define it as NOT NULL and remove the "is conceptually" out of the equation.
Providing a default value is also sometimes a good option.
Tom Kyte has a bunch to say on this area in his books and his site http://asktom.oracle.com Received on Fri Aug 17 2007 - 13:11:07 CDT
![]() |
![]() |