Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (A-D)

 

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.

Returns

INT

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

Example

The following statement returns the value 8:

SELECT BIT_LENGTH( '01101011' );