BIT_LENGTH function [Bit array]

Returns the number of bits stored in the array.

Syntax
BIT_LENGTH( bit-expression )
Parameters
  • bit-expression   The bit expression for which the length is to be determined.

See also
Standards and compatibility
  • SQL/2003   Vendor extension.

Example

The following statement returns the value 8:

SELECT BIT_LENGTH( '01101011' );