BIT_XOR
Perform a bitwise XOR operation. This function returns the result of performing a bitwise XOR on all values in a given expression.
Syntax
BIT_XOR(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?

