^
Syntax
^
Description
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.
Examples
SELECT 1 ^ 1; +-------+ | 1 ^ 1 | +-------+ | 0 | +-------+ SELECT 1 ^ 0; +-------+ | 1 ^ 0 | +-------+ | 1 | +-------+ SELECT 11 ^ 3; +--------+ | 11 ^ 3 | +--------+ | 8 | +--------+
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.