bit_length
Description
Syntax:
INT bit_length (VARCHAR str)
This function returns the bit length of the string.
Example
mysql> select bit_length("abc");
+-------------------+
| bit_length('abc') |
+-------------------+
| 24 |
+-------------------+
mysql> select bit_length("中国");
+----------------------+
| bit_length('中国') |
+----------------------+
| 48 |
+----------------------+
Keywords
BIT_LENGTH