OREPLACE - Advanced SQL Engine - Teradata Database

Teradata Vantage™ - SQL Functions, Expressions, and Predicates

Product
Advanced SQL Engine
Teradata Database
Release Number
16.20
Published
March 2019
Language
English (United States)
Last Update
2020-03-25
dita:mapPath
xzf1512079057909.ditamap
dita:ditavalPath
TD_DBS_16_20_Update1.ditaval
dita:id
kby1472250656485
Product Category
Software
Teradata Vantage

Purpose

Replaces every occurrence of search_string in the source_string with the replace_string. Use this function either to replace or remove portions of a string.

Syntax



TD_SYSFNLIB.
Name of the database where the function is located.
source_string
A character string or string expression.
If source_string is NULL, NULL is returned.
search_string
A string of characters that the function searches for in source_string.
If search_string is NULL, NULL is returned.
replace_string
A string of characters that replaces the characters specified by search_string.
If replace_string is NULL or is an empty string, or is omitted, all occurrences of search_string are removed from the source_string.