Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ SELECT trim(' ab d ') str;
+------+
```

2. Remove specified strings from both ends
2. Remove specified strings from both ends — `trim(str, rhs)` repeatedly strips `<rhs>` from both the leading and trailing ends of `<str>` until neither end starts/ends with `<rhs>`.
```sql
SELECT trim('ababccaab', 'ab') str;
```
```text
+---------+
| str |
+---------+
| ababcca |
+---------+
+------+
| str |
+------+
| cca |
+------+
```

3. UTF-8 character support
Expand Down