Skip to main content
Version: Candidate-4.0

length

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