BITFLAG() function

Scalar. Returns a value with all bits set to zero, except for specified bits.

Syntax

BITFLAG( bit ) BITFLAGLONG( bit )
Parameter

bit

Which bit to set, starting from 0 as the least-significant bit.

Data Types

Return

bit

Integer (BITFLAG)

Integer

Long (BITFLAGLONG)

Integer

Examples

INSERT INTO OutStream
SELECT BITMASK(0)
FROM InStream;