ReferenceSQL FunctionsString functionslengthVersion: Stable-3.5On this pagelength 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