跳到主要内容
最后于 更新

XOR

Description​

返回两个数字 XOR 的结果。

Syntax​

BOOLEAN xor BOOLEAN

Example​

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

Keywords​

XOR