REPLACE
suggest changeReplace every occurrence of from_str in str with to_str. The match is case-sensitive. If from_str is not found, the original string is returned.
Syntax: REPLACE(str, from_str, to_str)
REPLACE('foobarbaz', 'bar', 'BAR') -- 'fooBARbaz'
REPLACE('foobarbaz', 'zzz', 'ZZZ') -- 'foobarbaz'
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents