Skip to main content
VeloDB Cloud 26.x is based on Doris 4.x. Versions in this section refer to Doris versions. See Version Mapping.

XOR

Description​

Return the XOR value of two numbers.

Syntax​

BOOLEAN xor BOOLEAN

Example​

mysql> select true xor false, true xor true;
+------------------+-----------------+
| (TRUE XOR FALSE) | (TRUE XOR TRUE) |
+------------------+-----------------+
| 1 | 0 |
+------------------+-----------------+

Keywords​

XOR