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: Offline doubt - Exclusive OR operator in PL/SQL??.

RE: Offline doubt - Exclusive OR operator in PL/SQL??.

From: MacGregor, Ian A. <ian_at_SLAC.Stanford.EDU>
Date: Tue, 13 Feb 2001 13:51:28 -0800
Message-ID: <F001.002B3238.20010213133706@fatcity.com>

I said it was a bit xor. Your first message was not very specific. There is no general xor operator in Oracle. However under Oracle 8i you can create one. Look at the create operator command.

You could also do something like

(select x from A where y = 2
union
select x from A where z = 2)
minus
(select x from A where y = 2
intersect
select x from dual where z= 2)

Ian MacGregor
Stanford Linear Accelerator Center
ian_at_slac.stanford.edu

-----Original Message-----
Sent: Tuesday, February 13, 2001 11:17 AM To: Multiple recipients of list ORACLE-L

The only reference I found in the documentation was in the UTL_RAW package.

BIT_XOR Function
This function performs bitwise logical "exclusive or" of the values in RAW r1 with RAW r2 and returns the "xor'd" result RAW.

If r1 and r2 differ in length, then the "xor" operation is terminated after the last byte of the shorter of the two RAWs, and the unprocessed portion of the longer RAW is appended to the partial result.The result length equals the longer of the two input RAWs.

Syntax
UTL_RAW.BIT_XOR (
   r1 IN RAW,
   r2 IN RAW)
  RETURN RAW; Pragmas
pragma restrict_references(bit_xor, WNDS, RNDS, WNPS, RNPS);

Parameters
Table 63-40 BIT_XOR Function Parameters

> -----Original Message-----
> From: Arul kumar [SMTP:rakumar_at_mahindrabt.com]
> Sent: Monday, February 12, 2001 7:31 AM
> To: Multiple recipients of list ORACLE-L
> Subject: Offline doubt - Exclusive OR operator in PL/SQL??.
>
> Hi Gurus,
>
> We are currently working on migration of ORACLE / VB env. to ORACLE WEB
> SERVER env.
>
> In this, we need to change one part of VB code which is using EXCLUSIVE
> OR operator functionality to ORACLE (PL/SQL).
>
> Do we have such Exclusive OR operator in PL/SQL ? or is anyother way to
> get the work done.?
>
> Note - Oracle Database Version - 7.x
>
> Thank You.
> Arul.
>
> --
> Please see the official ORACLE-L FAQ: http://www.orafaq.com
> --
> Author: Arul kumar
> INET: rakumar_at_mahindrabt.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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Elliott, Patrick
  INET: Patrick.Elliott_at_bestbuy.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).
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: MacGregor, Ian A.
  INET: ian_at_SLAC.Stanford.EDU

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 Tue Feb 13 2001 - 15:51:28 CST

Original text of this message

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