CHAR_LENGTH

The CHAR_LENGTH function returns the length of a string. This is the same as the CHARACTER_LENGTH function.

Syntax

CHAR_LENGTH(string)

Example

SELECT CHAR_LENGTH(‘TDV’) AS Length;

The above query returns:

Length
-------
3