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: xor in PL/SQL

Re: xor in PL/SQL

From: Adrian Carlson-Hedges <adrian.ch_at_btinternet.com>
Date: Thu, 28 Feb 2002 18:37:15 +0000 (UTC)
Message-ID: <a5ltcr$96k$1@helle.btinternet.com>

"Finn Nova" <finn_nova_at_yahoo.de> wrote in message news:b32e8107.0202270225.58158e86_at_posting.google.com...
> Hi all,
>
> is there a xor operator in PL/SQL?
> We are using Oracle 8i.
>
> Regards,
>
> Finn

Let me see. Roughly

If A Then

    IF B then

        false
    ELSE
        true
    END IF
ELSE
    IF B then

        true
    ELSE
        false
    END IF
END IF OR

IF ((A OR B) AND NOT(A AND B)) I'm sure there are plenty of other ways

Adrian Received on Thu Feb 28 2002 - 12:37:15 CST

Original text of this message

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