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
[EMAIL PROTECTED]  

-----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:[EMAIL PROTECTED]]
> 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: [EMAIL PROTECTED]
> 
> 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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to