CHARACTER_LENGTH(<StringExpression>)
CHAR_LENGTH(<StringExpression>)
<StringExpression> =
Type of:
CHARACTER|CHAR
CHARACTER VARYING|VARCHAR
GUID
CHARACTER LARGE OBJECT|CLOB
Returns
INTEGER
UsageThe CHAR_LENGTH function returns the length of a string value as an integer value.
Examples
SELECT Notes, CHAR_LENGTH(Notes) AS NumChars
FROM Customers
SQL 2003 Standard DeviationsThis function deviates from the SQL 2003 standard in the following ways: