Skip to content

Commit 7bb8685

Browse files
committed
Modify the sub-replace function
1 parent fc5be12 commit 7bb8685

File tree

6 files changed

+18
-12
lines changed
  • docs/sql-manual/sql-functions/scalar-functions/string-functions
  • i18n/zh-CN/docusaurus-plugin-content-docs
    • current/sql-manual/sql-functions/scalar-functions/string-functions
    • version-2.1/sql-manual/sql-functions/scalar-functions/string-functions
    • version-3.0/sql-manual/sql-functions/scalar-functions/string-functions
  • versioned_docs
    • version-2.1/sql-manual/sql-functions/scalar-functions/string-functions
    • version-3.0/sql-manual/sql-functions/scalar-functions/string-functions

6 files changed

+18
-12
lines changed

docs/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
2929
## Syntax
3030

3131
```sql
32-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
32+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3333
```
3434

3535
## Parameters
@@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3838
| -- | -- |
3939
| `<str>` | The target string in which the replacement will occur |
4040
| `<new_str>` | The string that will replace the specified substring |
41-
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
41+
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
42+
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |
4243

4344
## Return Value
4445

i18n/zh-CN/docusaurus-plugin-content-docs/current/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ under the License.
3030
## 语法
3131

3232
```sql
33-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
33+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3434
```
3535

3636
## 参数
@@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3939
| -- | -- |
4040
| `<str>` | 要进行替换操作的目标字符串 |
4141
| `<new_str>` | 用于替换的目标字符串 |
42-
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
42+
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
43+
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |
4344

4445
## 返回值
4546

i18n/zh-CN/docusaurus-plugin-content-docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ under the License.
3030
## 语法
3131

3232
```sql
33-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
33+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3434
```
3535

3636
## 参数
@@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3939
| -- | -- |
4040
| `<str>` | 要进行替换操作的目标字符串 |
4141
| `<new_str>` | 用于替换的目标字符串 |
42-
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
42+
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
43+
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |
4344

4445
## 返回值
4546

i18n/zh-CN/docusaurus-plugin-content-docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ under the License.
3030
## 语法
3131

3232
```sql
33-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
33+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3434
```
3535

3636
## 参数
@@ -39,7 +39,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3939
| -- | -- |
4040
| `<str>` | 要进行替换操作的目标字符串 |
4141
| `<new_str>` | 用于替换的目标字符串 |
42-
| `[ ,<start> [ , <len> ]` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start. `len` is an optional parameter that specifies the length of the substring to be replaced |
42+
| `<start>` | 是替换操作开始的位置,表示从字符串中的哪个位置开始进行替换 |
43+
| `<len>` | 是一个可选参数,表示要替换的子字符串的长度 |
4344

4445
## 返回值
4546

versioned_docs/version-2.1/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
2929
## Syntax
3030

3131
```sql
32-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
32+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3333
```
3434

3535
## Parameters
@@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3838
| -- | -- |
3939
| `<str>` | The target string in which the replacement will occur |
4040
| `<new_str>` | The string that will replace the specified substring |
41-
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
41+
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
42+
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |
4243

4344
## Return Value
4445

versioned_docs/version-3.0/sql-manual/sql-functions/scalar-functions/string-functions/sub-replace.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ The `sub_replace` function is used to replace substrings within a string. You ca
2929
## Syntax
3030

3131
```sql
32-
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
32+
sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ])
3333
```
3434

3535
## Parameters
@@ -38,7 +38,8 @@ sub_replace(<str>, <new_str>, [ ,<start> [ , <len> ] ]
3838
| -- | -- |
3939
| `<str>` | The target string in which the replacement will occur |
4040
| `<new_str>` | The string that will replace the specified substring |
41-
| `<start[, len]>` | start specifies the position where the replacement starts. The optional len specifies the length of the substring to be replaced |
41+
| `<start>` | `start` is the position where the replacement operation begins, indicating from which position in the string the replacement will start |
42+
| `<len>` | `len` is an optional parameter that specifies the length of the substring to be replaced |
4243

4344
## Return Value
4445

0 commit comments

Comments
 (0)