BIT_LENGTH
Return the length of a string in bits. This function calculates the size of the string in bits (length in bytes multiplied by 8).
Syntax
BIT_LENGTH(str)Description
Examples
SELECT BIT_LENGTH('text');
+--------------------+
| BIT_LENGTH('text') |
+--------------------+
| 32 |
+--------------------+SELECT BIT_LENGTH('');
+----------------+
| BIT_LENGTH('') |
+----------------+
| 0 |
+----------------+Compatibility
Last updated
Was this helpful?

