请问ORACLE中怎么实现按位或?
ORACLE中只有BITAND没有BITOR,请问各位大虾有什么高招?????
急急急!!!
bitor=a+b-bitand(a,b);
如:a=9(1001) b=3(0011) 或运算结果应该为11(1011)
bitor=9+3-bitand(9,3)
SQL> select 9+3-bitand(9,3) from dual;
9+3-BITAND(9,3)
---------------
11
已用时间: 00: 00: 00.50
SQL>