BITAND(x, y);(x + y) - BITAND(x, y);(x + y) - BITAND(x, y) * 2;

解决方案 »

  1.   

    我直接写没有BITAND这个过程名啊
    这个是API吗?在哪个包下?
      

  2.   

    我的安装后就有啊,在哪就不清楚了。
    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production
    With the Partitioning, OLAP and Oracle Data Mining options
    JServer Release 9.2.0.1.0 - ProductionSQL> select bitand(1,2) from dual;BITAND(1,2)
    -----------
              0SQL> select bitand(1,3) from dual;BITAND(1,3)
    -----------
              1
      

  3.   

    你这个在写储存过程时候好用吗,我的怎么不好用啊,我是说不写在sql语句下面的那种!!
      

  4.   

    function f_TEST(a in number,b in number)
    return number
    as 
    begin
    return bitand(a,b);
    end f_test;
    SQL> select f_test(1,3) from dual;F_TEST(1,3)
    -----------
              1SQL>
      

  5.   

    SQL> begin
      2  bitand('0','1');
      3  end;
      4  /
    bitand('0','1');
    *
    ERROR 位于第 2 行:
    ORA-06550: 第 2 行, 第 1 列:
    PLS-00221: 'BITAND' 不是过程或尚未定义
    ORA-06550: 第 2 行, 第 1 列:
    PL/SQL: Statement ignored
      

  6.   

    SQL> declare a number;
      2  begin
      3  a:=bitand('0','1');
      4  dbms_output.put_line(a);
      5  end;
      6  /
    0PL/SQL 过程已成功完成。SQL>