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
AI generated answers are based on docs and other sources. Please test answers in non-production environments.