The CHARACTER_LENGTH or CHAR_LENGTH function returns the length of a string expression.
See LENGTH for a similar function.
The result of the function is a large integer. If the argument can be null, the result can be null; if the argument is null, the result is the null value.
If expression is a character string or graphic string, the result is the number of characters in the argument (not the number of bytes). A single character is either an SBCS, DBCS, or multiple-byte character. If expression is a binary string, the result is the number of bytes in the argument. The length of strings includes trailing blanks or hexadecimal zeroes. The length of a varying-length string is the actual length, not the maximum length.
SELECT CHARACTER_LENGTH(NAME), LENGTH(NAME) FROM T1 WHERE NAME = 'Jürgen'Returns the value 6 for CHARACTER_LENGTH and 7 for LENGTH.