BIT_LENGTH

functionsupportedCore SQL functions

docs.snowflake.com ↗

String & binary functions

Returns the length of a string or binary value in bits. Snowflake doesn’t use fractional bytes so length is always calculated as 8 * OCTET_LENGTH.

Syntax

BIT_LENGTH(<string_or_binary>)

Parameters

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