BIT_LENGTH
Return the length of a string in bits.
Analyze Syntax
func.bit_length(<expr>)
Analyze Examples
func.bit_length('Word')
+-------------------------+
| func.bit_length('Word') |
+-------------------------+
| 32 |
+-------------------------+
SQL Syntax
BIT_LENGTH(<expr>)
Arguments
Arguments | Description |
---|---|
<expr> | The string. |
Return Type
BIGINT
SQL Examples
SELECT BIT_LENGTH('Word');
+----------------------------+
| SELECT BIT_LENGTH('Word'); |
+----------------------------+
| 32 |
+----------------------------+
Last modified March 27, 2024 at 3:17 PM EST: adding analyze syntax and examples placeholders for stings (4c6f489)