bitor

description

Syntax

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

Returns the result of the OR operation of two integers.

Integer range: TINYINT、SMALLINT、INT、BIGINT、LARGEINT

example

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

keyword

  1. BITOR