All Products
Search
Document Center

Bitwise operators

Last Updated: Jun 18, 2021

BIGINT UNSIGNED is used for bitwise operations. The sign bits are ignored in the operations.

The following table lists all bitwise operators.

Operator

Operand

Description

&

Binary

Bitwise AND.

|

Binary

Bitwise OR.

~

Unary

Bitwise NOT.

^

Binary

Bitwise XOR.

<<

Binary

Logical left shift.

>>

Binary

Logical right shift.