BITNOT

functionsupportedCore SQL functions

docs.snowflake.com ↗

Bitwise expression functions

Returns the bitwise negation of a numeric or binary expression.

Syntax

BITNOT( <expr> )

Parameters

NameRequiredDescription
exprrequiredThis expression must evaluate to an INTEGER value, a BINARY value, or a value of a data type that can be cast to an INTEGER value.

Returns

Returns an INTEGER value, a BINARY value, or NULL: - When the input expression contains an INTEGER value, returns an INTEGER value that represents the bitwise negation of the input expression. - When the input expression contains a BINARY value, returns a BINARY value that represents the bitwise negation of the input expression. - If the input value is NULL, returns NULL.

Usage notes