Home Privacy Policy Feedback Link to us Site Map Forums

Oracle/PLSQL: BitAnd Function


In Oracle/PLSQL, the bitand function returns an integer representing an AND operation on the bits of expr1 and expr2.

The syntax for the bitand function is:

bitand( expr1, expr2 )

expr1 and expr2 must resolve to non-negative integers.


Applies To:

  • Oracle 8i, Oracle 9i, Oracle 10g, Oracle 11g

For example:

bitand(5,3) would return 1
bitand(15,7) would return 7
bitand(5,2) would return 0
bitand(5,0) would return 0
bitand(6,2) would return 2