LENGTH
Descriptionβ
Returns the number of bytes in a string.
Syntaxβ
LENGTH ( <str> )
Parametersβ
Parameter | Description |
---|---|
<str> | The string whose bytes need to be calculated |
Return Valueβ
The number of bytes in the string <str>
.
Exampleβ
SELECT LENGTH("abc"),length("δΈε½")
+---------------+------------------+
| length('abc') | length('δΈε½') |
+---------------+------------------+
| 3 | 2 |
+---------------+------------------+