如何替换 Teradata select 语句中的多个字符串

Al_*_*__H 2 sql teradata

我需要从表中进行选择,但删除各种字符串。假设我的表中的条目是:

DataMart1:Here is some data and other valuable data
HouseWareMart Other data possibly junk data
DataLake3 there is nothing here
Run Code Online (Sandbox Code Playgroud)

我想删除各种字符串:“有价值的数据”“其他数据”“什么都没有”

所以我会得到:

DataMart1:Here is some data and other
HouseWareMart possibly junk data
DataLake3 here
Run Code Online (Sandbox Code Playgroud)

我考虑过嵌套 OREPLACE,但无法获得正确的语法,并且搜索“嵌套 OREPLACE”没有返回任何有用的信息。

有什么建议么?

Gor*_*off 5

嵌套替换的语法:

select oreplace(oreplace(oreplace(col, 'Valuable data', ''), 'Other data ', ''), 'there is nothing ', '')
Run Code Online (Sandbox Code Playgroud)