Returns the number of characters in a string.
CHAR_LENGTH ( string-expression )
string-expression The string whose length is to be calculated.
Trailing white space characters are included in the length returned.
The return value of a NULL string is NULL.
If the string is in a multibyte character set, the CHAR_LENGTH value may be less than the BYTE_LENGTH value.
The following statement returns the value 8.
SELECT CHAR_LENGTH( 'Chemical' ) FROM iq_dummy