PostgreSQL BITWISE OR
From w3cyberlearnings
Contents |
Postgresql oR operator
Returns the bitwise OR operator.
Syntax OR operator
a | b
Example 1
postgres=# SELECT 3 | 2 as r1; r1 ---- 3 (1 row) // 3=11 // 2=10 ------- 3=11
Example 2
postgres=# SELECT 3 | 9 as r1; r1 ---- 11 (1 row)
Example 3
postgres=# SELECT 5 | 12 as r1; r1 ---- 13 (1 row)
Related Links
- factorial(!)
- absolute value(@)
- bitwise AND(&)
- bitwise OR(|)