XOR
Descriptionβ
Performs a bitwise exclusive OR operation on two BOOLEAN values.
Syntaxβ
<lhs> XOR <rhs>
Parametersβ
parameter | description |
---|---|
<lhs> | The first BOOLEAN value to be evaluated |
<rhs> | The second BOOLEAN value to be evaluated |
Return Valueβ
Returns the exclusive OR of two BOOLEAN values.
Examplesβ
select true XOR false,true XOR true;
+------------------+-----------------+
| xor(TRUE, FALSE) | xor(TRUE, TRUE) |
+------------------+-----------------+
| 1 | 0 |
+------------------+-----------------+