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: Finn Nova <finn_nova_at_yahoo.de>
Date: 1 Mar 2002 01:26:43 -0800
Message-ID: <b32e8107.0203010126.721506f8@posting.google.com>


Hi,

thank you all for your more or less helpful posts. I know how to implement xor myself, but I wanted to know if I have overseen something about xor in the documentation. Xor is implemented in most CPUs. I don't understand why I should write code (that will take a lot longer to execute) for an operation that is already there as hardware.

Finn

"Adrian Carlson-Hedges" <adrian.ch_at_btinternet.com> wrote in message news:<a5ltcr$96k$1_at_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 Fri Mar 01 2002 - 03:26:43 CST

Original text of this message

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