Skip to main content
Calculates the length of the input string in bytes.

Syntax

Parameters

Return Type

INTEGER

Example

Use the OCTET_LENGTH to find the length of any string in bytes, such as:

Rows: 1Execution time: 5.21ms

Because the UTF8 encoding of ’🔥’ has the byte sequence 0xF0 0x9F 0x94 0xA5.