Skip to content

Commit 9106a83

Browse files
authored
[Improve][Doc] Adjust description of trim series sql function (#9143)
1 parent 5f55e31 commit 9106a83

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

docs/en/transform-v2/sql-functions.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ RPAD(TEXT, 10, '-')
186186

187187
Removes all leading spaces or other specified characters from a string.
188188

189-
This function is deprecated, use TRIM instead of it.
190-
191189
Example:
192190

193191
LTRIM(NAME)
@@ -198,8 +196,6 @@ LTRIM(NAME)
198196

199197
Removes all trailing spaces or other specified characters from a string.
200198

201-
This function is deprecated, use TRIM instead of it.
202-
203199
Example:
204200

205201
RTRIM(NAME)
@@ -208,13 +204,11 @@ RTRIM(NAME)
208204

209205
```TRIM(string[, characterToTrimString])```
210206

211-
Removes all leading spaces or other specified characters from a string.
212-
213-
This function is deprecated, use TRIM instead of it.
207+
Removes all leading spaces and trailing spaces or other specified characters from a string.
214208

215209
Example:
216210

217-
LTRIM(NAME)
211+
TRIM(NAME)
218212

219213
### REGEXP_REPLACE
220214

docs/zh/transform-v2/sql-functions.md

+2-8
Original file line numberDiff line numberDiff line change
@@ -186,8 +186,6 @@ RPAD(TEXT, 10, '-')
186186

187187
移除字符串中所有前导空格或其他指定的字符。
188188

189-
此函数已被弃用,请使用 TRIM 替代。
190-
191189
示例:
192190

193191
LTRIM(NAME)
@@ -198,8 +196,6 @@ LTRIM(NAME)
198196

199197
移除字符串中所有尾随空格或其他指定的字符。
200198

201-
此函数已被弃用,请使用 TRIM 替代。
202-
203199
示例:
204200

205201
RTRIM(NAME)
@@ -208,13 +204,11 @@ RTRIM(NAME)
208204

209205
```TRIM(string[, characterToTrimString])```
210206

211-
移除字符串中所有前导空格或其他指定的字符。
212-
213-
此函数已被弃用,请使用 TRIM 替代。
207+
移除字符串中所有前导空格和尾随空格或其他指定的字符。
214208

215209
示例:
216210

217-
LTRIM(NAME)
211+
TRIM(NAME)
218212

219213
### REGEXP_REPLACE
220214

0 commit comments

Comments
 (0)