Returns the number of characters in a string of any data type.
Category: | Character |
Alias: | CHAR_LENGTH |
Returned data type: | BIGINT |
Note: | The CHARACTER_LENGTH function counts trailing blanks. If you do not want to count trailing blanks, then you must use the TRIM Function to remove them. |
specifies any valid expression.
Data type | All data types are valid. |
See | <sql-expression> |
FedSQL Expressions |
Statements
|
Results
|
---|---|
select character_length('December'); |
8 |
select character_length('FedSQL '); |
7 |