ReferenceSQL FunctionsString functionslengthVersion: 4.0On 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