REPLACE

suggest change

Replace 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'

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents