8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 16:43:03 +01:00
firebird-mirror/doc/sql.extensions/README.length
2005-05-27 22:45:31 +00:00

17 lines
486 B
Plaintext

SQL Language Extension: BIT_LENGTH, CHAR_LENGTH/CHARACTER_LENGTH and OCTET_LENGTH
Function:
Return number of bits, characters and bytes of a string.
Author:
Adriano dos Santos Fernandes <adrianosf@uol.com.br>
Format:
<length function> ::=
{ BIT_LENGTH | CHAR_LENGTH | CHARACTER_LENGTH | OCTET_LENGTH } <left paren> <value expression> <right paren>
Example:
select
rdb$relation_name, char_length(rdb$relation_name), char_length(trim(rdb$relation_name))
from rdb$relations;