Skip to content

Return the length of a string in bits.

func.bit_length(<expr>)
func.bit_length('Word')
┌─────────────────────────┐
│ func.bit_length('Word') │
├─────────────────────────┤
32
└─────────────────────────┘
BIT_LENGTH(<expr>)
ArgumentsDescription
<expr>The string.

BIGINT

SELECT BIT_LENGTH('Word');
┌────────────────────────────┐
SELECT BIT_LENGTH('Word'); │
├────────────────────────────┤
32
└────────────────────────────┘