^
Bitwise XOR. Converts the values to binary and compares bits. If one (and only one) of the corresponding bits is 1 is the resulting bit also 1.
SELECT 1 ^ 1; +-------+ | 1 ^ 1 | +-------+ | 0 | +-------+ SELECT 1 ^ 0; +-------+ | 1 ^ 0 | +-------+ | 1 | +-------+ SELECT 11 ^ 3; +--------+ | 11 ^ 3 | +--------+ | 8 | +--------+
© 2019 MariaDB
Licensed under the Creative Commons Attribution 3.0 Unported License and the GNU Free Documentation License.
https://mariadb.com/kb/en/bitwise-xor/