BITGET

BITGET (y, x)

Parameters

  • x and y - the arguments.

Description

Returns true if and only if the first parameter has a bit set in the position specified by the second parameter. This method returns a boolean. The second parameter is zero-indexed; the least significant bit has position 0.

Example

Check that 3th bit is 1:

SELECT BITGET(X, 3) from Triangles;