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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: is null / = null query

RE: is null / = null query

From: <GKor_at_rdw.nl>
Date: Fri, 10 Nov 2000 09:04:39 +0100
Message-Id: <10676.121689@fatcity.com>


i meant in fact this

when we use = NULL on our UNISYS mainframe with RDMS we get the following

*ERROR 402 : Use keyword IS instead of any other operators or NULL boolean expression.

> -----Oorspronkelijk bericht-----
> Van: Rao, Maheswara [SMTP:Maheswara.Rao_at_Sungardp3.com]
> Verzonden: 9-nov-00 17:06
> Aan: Multiple recipients of list ORACLE-L
> Onderwerp: RE: is null / = null query
>
> Gkor,
>
> When you want to compare null you use the clause IS NULL . Alternately, IS
> NOT NULL.
>
> As per your query, the second query is returning the result correctly.
> The
> first query returned zero rows because =NULL did not work.
>
> Now, please clarify, what exactly you mean by saying that you did not
> expect
> to get answer from the first query?
>
> Rao
>
> Maheswara.Rao_at_SunGardP3.com
>
> -----Original Message-----
>
> I have launched the following query in SQL*PLUS
>
> SQL> L
> 1* SELECT COUNT(*) FROM WERK_ORDER WHERE RESULT_CODE_WO = NULL;
> SQL> /
> 0
>
> 1 row selected.
>
> SQL> SELECT COUNT(*) FROM WERK_ORDER WHERE RESULT_CODE_WO IS NULL;
> 301
>
> 1 row selected.
>
> SQL>
>
> i did'nt expect to get answer on the first query anyone with an
> explanation
> or is this a undocumented feature ?
>
> thanks
>
> gkor_at_rdw.nl
> rdw the netherlands
> --
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Rao, Maheswara
> INET: Maheswara.Rao_at_Sungardp3.com
>
> Fat City Network Services -- (858) 538-5051 FAX: (858) 538-5051
> San Diego, California -- Public Internet access / Mailing Lists
> --------------------------------------------------------------------
> To REMOVE yourself from this mailing list, send an E-Mail message
> to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
> the message BODY, include a line containing: UNSUB ORACLE-L
> (or the name of mailing list you want to be removed from). You may
> also send the HELP command for other information (like subscribing).
Received on Fri Nov 10 2000 - 02:04:39 CST

Original text of this message

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