VeloDB Cloud
SQL Manual
Functions
bitwise-functions
bitor

bitor

Description

Syntax:

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

This function returns the result of OR operation of two integers.

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

Example

mysql> select bitor(3,5) ans;
+------+
| ans  |
+------+
|    7 |
+------+

mysql> select bitand(4,7) ans;
+------+
| ans  |
+------+
|    7 |
+------+

Keywords

BITOR