PostgreSQL BITWISE NOT
From w3cyberlearnings
Contents |
Postgresql NOT operator
The bitwise NOT operator.
Syntax NOT operator
a # b
Example 1
postgres=# SELECT ~1; ?column? ---------- -2 (1 row)
Example 2
postgres=# SELECT ~3; ?column? ---------- -4 (1 row)
Example 3
postgres=# SELECT ~10; ?column? ---------- -11 (1 row)
Related Links
- bitwise XOR(#)
- bitwise NOT(~)
- bitwise shift left(<<)
- bitwise shift right(>>)