Skip to content

Commit 177bc14

Browse files
committed
Create ltrim.md
1 parent 6554d5d commit 177bc14

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: LTRIM
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 beginning (left side) of a string.
9+
10+
## Syntax
11+
12+
```sql
13+
LTRIM(<string>, <trim_character>)
14+
```
15+
16+
## Examples
17+
18+
```sql
19+
SELECT LTRIM('xxdatabend', 'xx');
20+
21+
┌───────────────────────────┐
22+
│ ltrim('xxdatabend', 'xx') │
23+
├───────────────────────────┤
24+
│ databend │
25+
└───────────────────────────┘
26+
```

0 commit comments

Comments
 (0)