DSQL, PSQL
Syntax
Result type
INTEGER
Description
| Notes With arguments of type CHAR , this function returns the formal string length (i.e. the declared length of a field or variable). If you want to obtain the “logical” length, not counting the trailing spaces, right- the argument before passing it to CHAR[ACTER]_LENGTH . support: Since Firebird 2.1, this function fully supports text BLOB s of any length and character set.
|
Examples
select char_length('Hello!') from rdb$database
-- returns 6
-- returns 8
select char_length
from rdb$database
select char_length
(cast (_iso8859_1 'Grüß di!' as char(24) character set utf8))
from rdb$database
-- returns 24: all 24 CHAR positions count
BIT_LENGTH()
,