translate
Replaces characters in the input string that appear in from with the corresponding characters at the same position in to.
For example: Replace bcd in abcde with BCD:
translate("abcde", "bcd", "BCD") Syntax
translate(string <input>, string <from>, string <to>)
Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| input | Yes | STRING | The string to be replaced. |
| from | Yes | STRING | The set of characters to be replaced. |
| to | Yes | STRING | The set of replacement characters. |
Return Values
Returns a value of type STRING.
If any input parameter is NULL, NULL is returned.
Example Code
Returns A1B2C3.
SELECT translate('AaBbCc', 'abc', '123'); What is your overall rating for this page?
Thank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot