Files
doris/docs/en/sql-reference/sql-functions/bitwise-functions/bitnot.md
2022-01-24 21:08:41 +08:00

1.2 KiB

title, language
title language
bitnot en

bitnot

description

Syntax

BITNOT(Integer-type value)

Returns the result of the NOT operation of one integer.

Integer range: TINYINT、SMALLINT、INT、BIGINT、LARGEINT

example

mysql> select bitnot(7) ans;
+------+
| ans  |
+------+
|   -8 |
+------+

mysql> select bitxor(-127) ans;
+------+
| ans  |
+------+
|  126 |
+------+

keyword

BITNOT