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
- New Content published on w3resource:
- HTML-CSS Practical: Exercises, Practice, Solution
- Java Regular Expression: Exercises, Practice, Solution
- Scala Programming Exercises, Practice, Solution
- Python Itertools exercises
- Python Numpy exercises
- Python GeoPy Package exercises
- Python Pandas exercises
- Python nltk exercises
- Python BeautifulSoup exercises
- Form Template
- Composer - PHP Package Manager
- PHPUnit - PHP Testing
- Laravel - PHP Framework
- Angular - JavaScript Framework
- Vue - JavaScript Framework
- Jest - JavaScript Testing Framework