08:52:13 jlanzpa817>select bitand(1,2)+0 from dual;BITAND(1,2)+0
-------------
            0已用时间:  00: 00: 00.00左移、右移好象没有,不过可以转换为模2.

解决方案 »

  1.   

    楼主一张贴帮你搞掂!不要重复开。两个1之间的位与运算  
    SQL  >    select  to_number(bitand(1,1))  from  dual;  
     
    TO_NUMBER(BITAND(1,1))  
    ----------------------  
                                             1  
    1与0之间的运算:  
    SQL  >    select  to_number(bitand(1,0))  from  dual;  
     
    TO_NUMBER(BITAND(1,0))  
    ----------------------  
                                             0  
     
    0与0之间运算:  
    SQL  >    select  to_number(bitand(0,0))  from  dual;  
     
    TO_NUMBER(BITAND(0,0))  
    ----------------------  
                                             0  
      

  2.   

    http://expert.csdn.net/Expert/topic/1275/1275225.xml?temp=.8885157