length
Description
Syntax:
INT length (VARCHAR str)
This function returns the length of the string.
Example
mysql> select length("abc");
+---------------+
| length('abc') |
+---------------+
| 3 |
+---------------+
mysql> select length("中国");
+------------------+
| length('中国') |
+------------------+
| 6 |
+------------------+
Keywords
LENGTH