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

Commit 86f8cec

Browse files
committed
Add moniker, correct wording
1 parent b71d4ac commit 86f8cec

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: "RTRIM (Transact-SQL)"
44
author: MikeRayMSFT
55
ms.author: mikeray
66
ms.reviewer: randolphwest
7-
ms.date: 08/22/2022
7+
ms.date: 08/29/2022
88
ms.prod: sql
99
ms.prod_service: "database-engine, sql-database, synapse-analytics, pdw"
1010
ms.technology: t-sql
@@ -63,9 +63,7 @@ RTRIM ( character_expression )
6363

6464
#### *character_expression*
6565

66-
An [expression](../../t-sql/language-elements/expressions-transact-sql.md) of character data. *character_expression* can be a constant, variable, or column of either character or binary data.
67-
68-
*character_expression* must be of a data type that is implicitly convertible to **varchar**. Otherwise, use [CAST](../../t-sql/functions/cast-and-convert-transact-sql.md) to explicitly convert *character_expression*.
66+
An [expression](../../t-sql/language-elements/expressions-transact-sql.md) of character or binary data. *character_expression* can be a constant, variable, or column. *character_expression* must be of a data type, except **text**, **ntext**, and **image**, that is implicitly convertible to **varchar**. Otherwise, use [CAST](../../t-sql/functions/cast-and-convert-transact-sql.md) to explicitly convert *character_expression*.
6967

7068
::: moniker range=">=sql-server-ver16 || >=sql-server-linux-ver16"
7169
#### *characters*
@@ -123,6 +121,8 @@ Four spaces are after the period in this sentence. Next string.
123121
Four spaces are after the period in this sentence. Next string.
124122
```
125123

124+
::: moniker range=">=sql-server-ver16 || >=sql-server-linux-ver16"
125+
126126
### C. Remove specified characters from the end of a string
127127

128128
The following example removes the characters `abc.` from the end of the `.123abc.` string.
@@ -136,6 +136,7 @@ SELECT RTRIM('.123abc.' , 'abc.');
136136
```output
137137
.123
138138
```
139+
::: moniker-end
139140

140141
## See also
141142

0 commit comments

Comments
 (0)