Files
doris/docs/documentation/en/sql-reference/sql-functions/string-functions/length_EN.md
xy720 7a0c7f45b2 Add English documents for Doris (#1719)
The english documents is translated by machine. So It may has some mistake.
We will fix them later
2019-08-29 13:47:15 +08:00

538 B

length

Description '35;'35;' 35; Syntax

'INT length (VARCHAR str)'

Returns the length of the string and the number of characters returned for multi-byte characters. For example, five two-byte width words return a length of 10.

'35;'35; example

mysql> select length("abc");
+---------------+
length ('abc') 1244;
+---------------+
|             3 |
+---------------+

mysql> select length("中国");
+------------------+
| length('中国')   |
+------------------+
|                6 |
+------------------+

##keyword LENGTH