diff --git a/docs/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md b/docs/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md index c32f98de8b052..a26e179345115 100644 --- a/docs/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md +++ b/docs/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md @@ -2,27 +2,27 @@ { "title": "BIT_LENGTH", "language": "en", - "description": "返回字符串或二进制值的位长度(实际长度就是字节数 8。)。" + "description": "Returns the bit length of a string or binary value (i.e., the byte length × 8)." } --- -## 描述 +## Description -返回字符串或二进制值的位长度(实际长度就是字节数 * 8。)。 +Returns the bit length of a string or binary value (i.e., the byte length × 8). -## 语法 +## Syntax ```sql BIT_LENGTH() ``` -## 参数 -- `` 要返回长度的字符串值。 +## Parameters +- `` The string value whose bit length is to be returned. -## 返回值 +## Return Value -返回 `` 在二进制表示中所占的位数,包括所有 0 和 1。 +Returns the number of bits occupied by `` in its binary representation, counting all `0` and `1` bits. -## 示例 +## Examples 1. Example 1 ```sql select BIT_LENGTH("abc"), BIT_LENGTH("中国"), BIT_LENGTH(123); @@ -45,4 +45,4 @@ BIT_LENGTH() +------------------+ | NULL | +------------------+ - ``` \ No newline at end of file + ``` diff --git a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md index c32f98de8b052..a26e179345115 100644 --- a/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md +++ b/versioned_docs/version-4.x/sql-manual/sql-functions/scalar-functions/bitwise-functions/bit-length.md @@ -2,27 +2,27 @@ { "title": "BIT_LENGTH", "language": "en", - "description": "返回字符串或二进制值的位长度(实际长度就是字节数 8。)。" + "description": "Returns the bit length of a string or binary value (i.e., the byte length × 8)." } --- -## 描述 +## Description -返回字符串或二进制值的位长度(实际长度就是字节数 * 8。)。 +Returns the bit length of a string or binary value (i.e., the byte length × 8). -## 语法 +## Syntax ```sql BIT_LENGTH() ``` -## 参数 -- `` 要返回长度的字符串值。 +## Parameters +- `` The string value whose bit length is to be returned. -## 返回值 +## Return Value -返回 `` 在二进制表示中所占的位数,包括所有 0 和 1。 +Returns the number of bits occupied by `` in its binary representation, counting all `0` and `1` bits. -## 示例 +## Examples 1. Example 1 ```sql select BIT_LENGTH("abc"), BIT_LENGTH("中国"), BIT_LENGTH(123); @@ -45,4 +45,4 @@ BIT_LENGTH() +------------------+ | NULL | +------------------+ - ``` \ No newline at end of file + ```