mysql.h


BIT_LENGTH()

BIT_LENGTH(str)

Devuelve la longitud de la cadena str en bits:

mysql> SELECT BIT_LENGTH('text');
+--------------------+
| BIT_LENGTH('text') |
+--------------------+
| 32                 |
+--------------------+
1 row in set (0.01 sec)