MySQL BITWISE AND Operator
BITWISE AND Operator
MySQL BITWISE AND operator returns an unsigned 64-bit integer.
Syntax:
&
MySQL Version: 8.0
Example:
Code:
SELECT 2 & 15;
Explanation:
The above MySQL statement will return an unsigned integer for numbers specified in the argument.
Output:
mysql> SELECT 2 & 15; +--------+ | 2 & 15 | +--------+ | 2 | +--------+ 1 row in set (0.03 sec)
Previous: BIT_COUNT
Next: INVERT BITS
It will be nice if you may share this link in any developer community or anywhere else, from where other developers may find this content. Thanks.
https://www.w3resource.com/mysql/bit-functions/bitwise-and.php
- Weekly Trends and Language Statistics
- Weekly Trends and Language Statistics