Gets length of bits of the input expression.
expression: A binary or varchar expression
Examples
SELECT BIT_LENGTH(1010) -- 32
SELECT BIT_LENGTH('SPICE') -- 48
SELECT BIT_LENGTH('abc') -- 24
SELECT BIT_LENGTH(NULL) -- None
Last updated 2 years ago
Was this helpful?