Skip to content

Commit d49b25e

Browse files
committed
Create rtrim.md
1 parent 177bc14 commit d49b25e

File tree

1 file changed

+26
-0
lines changed
  • docs/en/sql-reference/20-sql-functions/06-string-functions

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
---
2+
title: RTRIM
3+
---
4+
import FunctionDescription from '@site/src/components/FunctionDescription';
5+
6+
<FunctionDescription description="Introduced or updated: v1.2.659"/>
7+
8+
Removes specific characters from the end (right side) of a string.
9+
10+
## Syntax
11+
12+
```sql
13+
RTRIM(<string>, <trim_character>)
14+
```
15+
16+
## Examples
17+
18+
```sql
19+
SELECT RTRIM('databendxx', 'xx');
20+
21+
┌───────────────────────────┐
22+
│ rtrim('databendxx', 'xx') │
23+
├───────────────────────────┤
24+
│ databend │
25+
└───────────────────────────┘
26+
```

0 commit comments

Comments
 (0)