Skip to content

Commit 5725ef2

Browse files
committed
added files
1 parent d49b25e commit 5725ef2

File tree

6 files changed

+81
-0
lines changed

6 files changed

+81
-0
lines changed

docs/en/sql-reference/20-sql-functions/06-string-functions/ltrim.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
Removes specific characters from the beginning (left side) of a string.
99

10+
See also: [RTRIM](rtrim.md)
11+
1012
## Syntax
1113

1214
```sql

docs/en/sql-reference/20-sql-functions/06-string-functions/rtrim.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
Removes specific characters from the end (right side) of a string.
99

10+
See also: [LTRIM](ltrim.md)
11+
1012
## Syntax
1113

1214
```sql
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: TRIM_BOTH
3+
---
4+
5+
Removes specific characters from both ends of a string.
6+
7+
See also: [TRIM](trim.md)
8+
9+
## Syntax
10+
11+
```sql
12+
TRIM_BOTH(<string>, <trim_character>)
13+
```
14+
15+
## Examples
16+
17+
```sql
18+
SELECT TRIM_BOTH('xxdatabendxx', 'xx');
19+
20+
┌─────────────────────────────────┐
21+
│ trim_both('xxdatabendxx', 'xx') │
22+
├─────────────────────────────────┤
23+
│ databend │
24+
└─────────────────────────────────┘
25+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: TRIM_LEADING
3+
---
4+
5+
Removes specific characters from the beginning (left side) of a string.
6+
7+
See also: [TRIM_TRAILING](trim-trailing.md)
8+
9+
## Syntax
10+
11+
```sql
12+
TRIM_LEADING(<string>, <trim_character>)
13+
```
14+
15+
## Examples
16+
17+
```sql
18+
SELECT TRIM_LEADING('xxdatabend', 'xx');
19+
20+
┌──────────────────────────────────┐
21+
│ trim_leading('xxdatabend', 'xx') │
22+
├──────────────────────────────────┤
23+
│ databend │
24+
└──────────────────────────────────┘
25+
```
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
---
2+
title: TRIM_TRAILING
3+
---
4+
5+
Removes specific characters from the end (right side) of a string.
6+
7+
See also: [TRIM_LEADING](trim-leading.md)
8+
9+
## Syntax
10+
11+
```sql
12+
TRIM_TRAILING(<string>, <trim_character>)
13+
```
14+
15+
## Examples
16+
17+
```sql
18+
SELECT TRIM_TRAILING('databendxx', 'xx');
19+
20+
┌───────────────────────────────────┐
21+
│ trim_trailing('databendxx', 'xx') │
22+
├───────────────────────────────────┤
23+
│ databend │
24+
└───────────────────────────────────┘
25+
```

docs/en/sql-reference/20-sql-functions/06-string-functions/trim.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ import FunctionDescription from '@site/src/components/FunctionDescription';
77

88
Removes specific characters or spaces from a string, optionally specifying the position (BOTH, LEADING, or TRAILING).
99

10+
See also: [TRIM_BOTH](trim-both.md)
11+
1012
## Syntax
1113

1214
```sql

0 commit comments

Comments
 (0)