LENGTH
is a synonym for ARRAY_LENGTH
Syntax
Parameters
Parameter | Description | Supported input types |
---|---|---|
<expression> | The string or binary data for which to return the length. | TEXT , BYTEA . For ARRAY , see ARRAY_LENGTH |
Return Type
INTEGER
Example
Use theLENGTH
to find the length of any string, such as:
19