1.2 KiB
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