Skip to main content
Version: Latest-3.3

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