length

Description

This function returns the length of a string (in bytes).

Syntax

INT length(VARCHAR str)

Examples

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

keyword

LENGTH