This document describes the support for bitwise operations by the read-only analysis instance and lists the supported data types for each operator's parameters. Parameter types and usage methods not listed in this document are not supported.
Supported Bitwise Operations
& Bitwise AND
Syntax: value1 & value2
The data types supported by value1 are: int, bigint, double, decimal, varchar, char.
The data types supported by value2 are: int, bigint, double, decimal, varchar, char.
| Bitwise OR
Syntax: value1 | value2
The data types supported by value1 are: int, bigint, double, decimal, varchar, char.
The data types supported by value2 are: int, bigint, double, decimal, varchar, char.
~ Bitwise NOT
Syntax: ~value1
The data types supported by value1 are: int, bigint, double, decimal, varchar, char.
^ Bitwise XOR
Syntax: value1 ^ value2
The data types supported by value1 are: int, bigint, double, decimal, varchar, char.
The data types supported by value2 are: int, bigint, double, decimal, varchar, char.