OCTET_LENGTH

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Returns the length of a string or binary value in bytes. This will be the same as LENGTH for ASCII strings and greater than LENGTH for strings using Unicode code points. For binary, this is always the same as LENGTH.

Syntax

OCTET_LENGTH(<string_or_binary>)

Parameters

NameRequiredDescription
string_or_binaryrequiredThe string or binary value for which the length is returned.