Skip to main content
Version: Preview-4.1

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