Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Character Equality

Re: Character Equality

From: Mark <cdo_at_lambic.co.uk>
Date: Tue, 12 Sep 2000 17:30:24 GMT
Message-ID: <39BE6821.87F19975@lambic.co.uk>

Caffeine wrote:
>
> Hi there,
> Just wondering if any one can explain to me why the following
> statement returns no rows.
>
> select test from tmp4 where test != '';

'' is equivalent to NULL, and you cannot do equality comparisons with NULL, instead do:

select test from tmp4 where test IS NOT NULL; Received on Tue Sep 12 2000 - 12:30:24 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US