Aller au contenu

Remplace toutes les occurrences d’une sous-chaîne par une autre sous-chaîne.

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 │
└─────────────┘