Math Numeric Functions MySQL Tutorial

Returns the bitwise XOR of all bits in expr.
This function returns 0 if there were no matching rows.

mysql>
mysql> select BIT_XOR(1);
+------------+
| BIT_XOR(1) |
+------------+
|          1 |
+------------+
1 row in set (0.00 sec)