BIT_LENGTH
functionsupportedCore SQL functionsReturns 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
| Name | Required | Description |
|---|---|---|
string_or_binary | required | The string or binary value for which the length is returned. |