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

Commit 271c37e

Browse files
authored
Merge pull request #1333 from LarnuUK/patch-7
translate-transact-sql.md - Spelling, Grammar, Wording
2 parents 820c41d + 4efb74e commit 271c37e

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ monikerRange: ">=sql-server-2017||=sqlallproducts-allversions||>=sql-server-linu
2121
# TRANSLATE (Transact-SQL)
2222
[!INCLUDE[tsql-appliesto-ss2017-xxxx-xxxx-xxx-md](../../includes/tsql-appliesto-ss2017-xxxx-xxxx-xxx-md.md)]
2323

24-
Returns the string provided as a first argument after some characters specified in the second argument are translated into a destination set of characters.
24+
Returns the string provided as a first argument after some characters specified in the second argument are translated into a destination set of characters specified in the third argument.
2525

2626
## Syntax
2727
```
@@ -30,23 +30,23 @@ TRANSLATE ( inputString, characters, translations)
3030

3131
## Arguments
3232

33-
inputString
34-
Is an [expression](../../t-sql/language-elements/expressions-transact-sql.md) of any character type (nvarchar, varchar, nchar, char).
33+
*inputString*
34+
Is the string [expression](../../t-sql/language-elements/expressions-transact-sql.md) to be searched. *inputString* can be any character data type (nvarchar, varchar, nchar, char).
3535

36-
characters
37-
Is a [expression](../../t-sql/language-elements/expressions-transact-sql.md) of any character type containing characters that should be replaced.
36+
*characters*
37+
Is a string [expression](../../t-sql/language-elements/expressions-transact-sql.md) containing characters that should be replaced. *characters* can be any character data type.
3838

39-
translations
40-
Is a character [expression](../../t-sql/language-elements/expressions-transact-sql.md) that matches second argument by type and length.
39+
*translations*
40+
Is a string [expression](../../t-sql/language-elements/expressions-transact-sql.md) containing the replacment characters. *translations* must be the same data type and length as *characters*.
4141

4242
## Return Types
43-
Returns a character expression of the same type as `inputString` where characters from the second argument are replaced with the matching characters from third argument.
43+
Returns a character expression of the same data type as `inputString` where characters from the second argument are replaced with the matching characters from third argument.
4444

4545
## Remarks
4646

47-
`TRANSLATE` function will return an error if characters and translations have different lengths. `TRANSLATE` function should return unchanged input if null vales are provided as characters or replacement arguments. The behavior of the `TRANSLATE` function should be identical to the [REPLACE](../../t-sql/functions/replace-transact-sql.md) function.
47+
`TRANSLATE` will return an error if *characters* and *translations* expressions have different lengths. `TRANSLATE` will return NULL if any of the arguements are NULL.
4848

49-
The behavior of the `TRANSLATE` function is equivalent to using multiple `REPLACE` functions.
49+
The behavior of the `TRANSLATE` function is equivalent to using multiple [REPLACE](../../t-sql/functions/replace-transact-sql.md) functions.
5050

5151
`TRANSLATE` is always SC collation aware.
5252

0 commit comments

Comments
 (0)