Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

Commit 9792c6c

Browse files
committed
Clarified example in TRIM article
Fixes https://github.com/MicrosoftDocs/sql-docs/issues/7983
1 parent 7a005c4 commit 9792c6c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

docs/t-sql/functions/trim-transact-sql.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ test
119119

120120
### B. Remove specified characters from both sides of string
121121

122-
The following example removes a trailing period and spaces from before `#` and after the word `test`.
122+
The following example provides a list of possible characters to remove from a string.
123123

124124
```sql
125125
SELECT TRIM( '.,! ' FROM ' # test .') AS Result;
@@ -131,6 +131,8 @@ SELECT TRIM( '.,! ' FROM ' # test .') AS Result;
131131
# test
132132
```
133133

134+
In this example, only the trailing period and spaces from before `#` and after the word `test` were removed. The other characters were ignored because they didn't exist in the string.
135+
134136
::: moniker range=">=sql-server-ver16 || >=sql-server-linux-ver16"
135137

136138
### C. Remove specified characters from the start of a string

0 commit comments

Comments
 (0)