BIT_OR
Perform a bitwise OR operation. This function returns the result of performing a bitwise OR on all values in a given expression.
Syntax
BIT_OR(expr) [over_clause]Description
Examples
CREATE TABLE vals (x INT);
INSERT INTO vals VALUES(111),(110),(100);
SELECT BIT_AND(x), BIT_OR(x), BIT_XOR(x) FROM vals;
+------------+-----------+------------+
| BIT_AND(x) | BIT_OR(x) | BIT_XOR(x) |
+------------+-----------+------------+
| 100 | 111 | 101 |
+------------+-----------+------------+See Also
Last updated
Was this helpful?

