Syntax
Parameters
| Parameter | Description | Supported input types |
|---|---|---|
<expression> | The string or binary data for which to return the length. | TEXT, BYTEA |
Return Type
INTEGER
Example
Use theOCTET_LENGTH to find the length of any string in bytes, such as:
| octet_length int |
|---|
| 4 |
Rows: 1Execution time: 5.21ms
0xF0 0x9F 0x94 0xA5.