get_bit()

Extracts the nth bit from bitstring; the first (leftmost) bit is indexed 0

Arguments & returns

get_bit(bitstring, index)

Scalar
Overload link bitstringindex Returns
#01 BITINTEGER INTEGER

Example

get_bit example
SQL
Haybarn WASM 1.5.5-rc3 · In your browser

Engine example · Run to view results.