Skip to main content
Version: 24.3.x

Categories: Bitwise

BITWISE_XOR

Returns the bitwise XOR of two operands.

Syntax

BITWISE_XOR(op1 NUMERIC, op2 NUMERIC) → NUMERIC

  • op1: First operand.
  • op2: Second operand.

Examples

BITWISE_XOR example
SELECT BITWISE_XOR(7, 4)
-- 3
BITWISE_XOR example
SELECT BITWISE_XOR(1, 2)
-- 3