콘텐츠로 이동

문자열에서 일치하는 모든 부분 문자열을 다른 부분 문자열로 바꿉니다.

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