BITNOT
Descriptionβ
Used to perform a bitwise inversion operation on an integer.
Integer range: TINYINT, SMALLINT, INT, BIGINT, LARGEINT
Syntaxβ
BITNOT( <x>)
Parametersβ
parameter | description |
---|---|
<x> | Integer operations |
Return Valueβ
Returns the result of the NOT operation of one integer.
Examplesβ
select BITNOT(7), BITNOT(-127);
+-------+----------+
| (~ 7) | (~ -127) |
+-------+----------+
| -8 | 126 |
+-------+----------+