A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.w3resource.com/mysql/bit-functions/invert-bits.php below:

Website Navigation


MySQL INVERT BITS() bit operator

MySQL INVERT BITS operatorLast update on August 10 2023 07:09:42 (UTC/GMT +8 hours) INVERT BITS operator

MySQL Invert bits operator returns an unsigned 64-bit integer. It inverts all bits.

Syntax:

~

MySQL Version: 8.0

Example:

Code:

SELECT  6 & ~2;

Explanation

The above MySQL statement will return an unsigned integer for specified numbers.

Output:

mysql> SELECT 6 & ~2;
+--------+
| 6 & ~2 |
+--------+
|      4 | 
+--------+
1 row in set (0.02 sec)

Previous: BITWISE AND
Next: BITWISE OR




RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4