Mega Code Archive

 
Categories / MySQL Tutorial / Data Types
 

Bitwise XOR(^)

mysql> mysql> SELECT 1 ^ 1; +-------+ | 1 ^ 1 | +-------+ |     0 | +-------+ 1 row in set (0.00 sec) mysql> SELECT 1 ^ 0; +-------+ | 1 ^ 0 | +-------+ |     1 | +-------+ 1 row in set (0.00 sec) mysql> SELECT 11 ^ 3; +--------+ | 11 ^ 3 | +--------+ |      8 | +--------+ 1 row in set (0.02 sec) mysql>