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