Skip to main content

BITWISE_AND

Categories: Bitwise

BITWISE_AND

Returns the bitwise AND of two operands.

Syntax

BITWISE_AND(op1 NUMERIC, op2 NUMERIC) → NUMERIC

  • op1: First operand
  • op2: Second operand

Examples

BITWISE_AND example
SELECT BITWISE_AND(7, 4)
-- 4
BITWISE_AND example
SELECT BITWISE_AND(1, 2)
-- 0