MySQL Function Reference

LENGTH
Returns the length of the string
MySQL 8.1
LENGTH(str)
str
The string whose length is returned by the function
Examples
MySQL 8.1
SELECT LENGTH('sql-academy');