LENGTH(string_exp)

Returns the number of characters in string_exp, excluding trailing blanks.

 

Example:

SELECT LENGTH('ABCEDFG') returns 7