Please note, this is a STATIC archive of website www.w3resource.com from 19 Jul 2022, cach3.com does not collect or store any user information, there is no "phishing" involved.
w3resource

MySQL BITWISE OR Operator

BITWISE OR Operator

MySQL bit wise OR operator returns an unsigned 64-bit integer.

Syntax:

|

Example

Code:

SELECT 2 | 5;

Explanation:

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

Sample Output:

mysql> SELECT 2 | 5;
+-------+
| 2 | 5 |
+-------+
|     7 | 
+-------+
1 row in set (0.00 sec)

Previous: INVERT BITS
Next: BITWISE XOR