Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: selecting a NULL value?????
lkolinek_at_concentric.net (larryk) wrote:
>Here is a select statement:
>
>SELECT *
>FROM this_table
>WHERE (char_field = ''
>OR char_field = null )
>
>
>this_table.char_field contains nothing. Why does this SQL statement
>not work?
where char_field is null
Warning. Equating a field = '' may work at present (7.3) but is
probably going to change.
Also check that char_field is declared as varchar2.
If it's defined as char you may have to match spaces.
Received on Tue Aug 25 1998 - 08:51:52 CDT
![]() |
![]() |