bitand

description

Syntax

BITAND(Integer-type lhs, Integer-type rhs)

返回两个整数与运算的结果.

整数范围:TINYINT、SMALLINT、INT、BIGINT、LARGEINT

example

  1. mysql> select bitand(3,5) ans;
  2. +------+
  3. | ans |
  4. +------+
  5. | 1 |
  6. +------+
  7. mysql> select bitand(4,7) ans;
  8. +------+
  9. | ans |
  10. +------+
  11. | 4 |
  12. +------+

keywords

  1. BITAND