For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
WITH t AS (SELECT 0 col1 FROM dual UNION SELECT 1 col1 FROM dual ) SELECT t1.col1, t2.col1, bitand(t1.col1, t2.col1) FROM t t1 , t t2 ;
SELECT 1023 - 755 FROM dual; => 268 SELECT 1023 - 268 FROM dual; => 755
function bitxor(p_dec1 number, p_dec2 number) return number is begin return bitor(p_dec1,p_dec2)-bitand(p_dec1,p_dec2); -- or you could use: return p_dec1-2*bitand(p_dec1,p_dec2)+p_dec2; end;