OTRANSLATE Function Examples | Teradata Vantage - 17.10 - Example: Returning the Current Database Version - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1145-171K
Language
English (United States)

The following query returns the string 'TD14.0 is the current database version'. The occurrence in source_string of the character in from_string ('3') is replaced by the character in to_string ('4').

   SELECT OTRANSLATE('TD13.0 is the current database version',
      '3', '4');