Skip to main content
Version: V1.0.0

BIT_LENGTH

Declaration

BIT_LENGTH(str)

Description

Returns the bit length of the string str.

Example

SELECT BIT_LENGTH('oceanbase');
+-------------------------+
| BIT_LENGTH('oceanbase') |
+-------------------------+
| 72 |
+-------------------------+
1 row in set (0.001 sec)