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

SQL Anywhere 11.0.0 » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » Alphabetical list of functions


BIT_LENGTH function [Bit array]

Returns the number of bits stored in the array.

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

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


The following statement returns the value 8:

SELECT BIT_LENGTH( '01101011' );