OCTET_LENGTH(string_exp)

Returns the length in bytes of the string expression. The result is the smallest integer not less than the number of bits divided by 8.

 

Example:

SELECT OCTET_LENGTH('ABCDEFG') returns 7