LENGTH
Return the length of a string in bytes. This function counts the number of bytes in the string, which may differ from character count for multi-byte strings.
Syntax
LENGTH(str)Description
Examples
SELECT LENGTH('MariaDB');
+-------------------+
| LENGTH('MariaDB') |
+-------------------+
| 7 |
+-------------------+See Also
Last updated
Was this helpful?

