Skip to main content
Scalar function
Aliases: getbit Returns NULL when an argument is NULL.

Syntax

Scalar

Arguments

Returns

  • Type: TINYINT
  • Possible values: 0 or 1.
  • NULL behavior: Returns NULL when an argument is NULL.

Properties

Examples

Position and NULL input

Read set and unset positions

Limitations

  • Negative positions and positions at least as large as the integer width raise an execution error.
Last modified on October 15, 2026