Subject | Re: [firebird-support] Null and LIKE Clause |
---|---|
Author | Lucas Franzen |
Post date | 2004-04-27T12:50:01Z |
Christianto Tjahyadi schrieb:
NULL is NULL and is NOT an empty string, it's unknown.
Change your design of saving values.
If you exepct empty strings to be treated as empty strings, save empty
strings and not null.
Luc.
> I expect, when I do a SELECT with option WHERE COLUMN2 LIKE '%', all of rowsYou expect wrong.
> will be displayed, including the rows with COLUMN2 is null. But when I do a
> SELECT with option WHERE COLUMN2 LIKE 'A%", only rows with the first
> character is 'A' will be displayed.
NULL is NULL and is NOT an empty string, it's unknown.
Change your design of saving values.
If you exepct empty strings to be treated as empty strings, save empty
strings and not null.
Luc.