VeloDB Cloud
SQL Reference
SQL Functions
Scalar Functions
Numeric Functions
XOR

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