~
(tilde sign) operator
Applies to: Databricks SQL
Databricks Runtime
Returns the bitwise NOT
of expr
.
~ expr
expr
: An integral numeric type expression.
The result type matches the type of expr
.
> SELECT ~ 0;
-1