Skip to content

Replaces all occurrences of a substring with another substring.

func.replace(<str>, <old>, <new>)
func.replace('hello world', 'world', 'there')
┌───────────────┐
│ 'hello there' │
└───────────────┘
REPLACE(<str>, <old>, <new>)
SELECT REPLACE('hello world', 'world', 'there');
┌─────────────┐
│ hello there │
└─────────────┘