Skip to main content
Version: current [25.x]

Categories: Bitwise

XOR

Returns the bitwise XOR of two integers.

Syntax

XOR(expression1 int32, expression2 int32) → int32

  • expression1: The integer input.
  • expression2: The integer input.

Examples

XOR example
SELECT XOR(1, 1)
-- 0