Skip to main content

OCTET_LENGTH

OCTET_LENGTH() is a synonym for LENGTH().

Syntax

OCTET_LENGTH(<str>)

Examples

SELECT OCTET_LENGTH('databend');
+--------------------------+
| OCTET_LENGTH('databend') |
+--------------------------+
| 8 |
+--------------------------+
Try Databend Cloud for FREE

Multimodal, object-storage-native warehouse for BI, vectors, search, and geo.

Snowflake-compatible SQL with automatic scaling.

Sign up and get $200 in credits.

Try it today