LENGTH

The LENGTH functions return the length of a text expression.

Return Value

NUMBER

Syntax

{ LENGTH | LENGTHB | LENGTHC | LENGTH2 | LENGTH4 }(char)

Arguments

char is any text expression.

Examples

LENGTH('CANDIDE') returns the value 7.

LENGTHB('CANDIDE') returns the value 7 in a single-byte character set or 14 in a double-byte character set.