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

Home -> Community -> Usenet -> c.d.o.server -> Re: LNNVL function

Re: LNNVL function

From: Richard Kuhler <noone_at_nowhere.com>
Date: Thu, 30 Oct 2003 20:21:14 GMT
Message-ID: <_oeob.80138$ZH4.79809@twister.socal.rr.com>


Rob Cowell wrote:
> Anyone got any ideas.
>
> SELECT 1 FROM DUAL
> WHERE LNNVL(1=2)
>
> returns
>
> 1
>
> Suggesting that LNNVL(1=2) evaluates to true
>
> But LNNVL(1=1) evaluates to false
>
> I assume there must be some NULL processing going on too because of the
> function name.
>
> It seems totally undocumented and there's only one unhelpful mention on
> Metalink.
>
> Anyone know for sure what it does?

I found a google reference that seems to be correct. It's 'Logic Not NVL'. So it negates the boolean result but returns true for null. However, being undocumented, I'd stick with something like 1!=2 or 1 is null or 2 is null.

--
Richard Kuhler
Received on Thu Oct 30 2003 - 14:21:14 CST

Original text of this message

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