Bitwise Functions

Bitwise functions supported by e6data

SHIFTRIGHT ( <expr>, <n> )

Alternate syntax: <expr> >> n;

Returns a bitwise signed right shifted by n bits.

> SELECT shiftright(2, 1);
1
> SELECT 2 >> 1;
1

SHIFTLEFT ( <expr>, <n> )

Alternate syntax: <expr> << n;

Returns a bitwise signed left shifted by n bits.

> SELECT shiftleft(2, 1);
4
> SELECT 2 << 1;
4

Last updated