bit_position()

Returns first starting index of the specified substring within bits, or zero if it is not present. The first (leftmost) bit is indexed 1

Arguments & returns

bit_position(substring, bitstring)

Scalar
Overload link substringbitstring Returns
#01 BITBIT INTEGER

Example

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

Engine example · Run to view results.