ID EN
String Functions and Operators

BIT_LENGTH(str)

MySQL 8.4

Returns the length of the string str in bits. Returns NULL if str is NULL.

Syntax

MYSQL
SELECT BIT_LENGTH('text');
32

Examples

Example
MYSQL
SELECT BIT_LENGTH('text');
32