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: Compare variables / NULL syndrome

Re: Compare variables / NULL syndrome

From: Alton Ayers <altona_at_ditw.com>
Date: Mon, 17 May 1999 16:43:14 -0400
Message-ID: <37407F62.53D3C283@ditw.com>


I've used this before:

        if (0 || var_a = 0 || mytab.z) and
           (0 || var_b = 0 || mytab.y) and
           ...
           (0 || var_z = 0 || mytab.a) then

Hope this helps.

    Alton

Sam Jordan wrote:

> First I have done it the following way, something like
>
> if (var_a = mytab.z) and
> (var_b = mytab.y) and
> ...
> (var_z = mytab.a) then
>
> Problem: if both parameter and table element are null, then
> this comparison will result to 'not true', although both results
> are the same.
Received on Mon May 17 1999 - 15:43:14 CDT

Original text of this message

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