Oracle PL/SQL Tutorial/Numerical Math Functions/BITAND

Материал из SQL эксперт
Перейти к: навигация, поиск

BITAND(0, 0)

   <source lang="sql">

SQL> select BITAND(0, 0) from dual; BITAND(0,0)


         0</source>
   
  

BITAND(0, 1)

   <source lang="sql">

SQL> select BITAND(0, 1) from dual; BITAND(0,1)


         0</source>
   
  

BITAND(1, 0)

   <source lang="sql">

SQL> select BITAND(1, 0) from dual; BITAND(1,0)


         0</source>
   
  

BITAND()

   <source lang="sql">

SQL> select BITAND(1010, 1100) from dual; BITAND(1010,1100)


              64</source>
   
  

BITAND(1, 1)

   <source lang="sql">

SQL> select BITAND(1, 1) from dual; BITAND(1,1)


         1</source>