跳转到内容

根据字符映射替换字符串中的字符。

func.translate(<str>, <from>, <to>)
func.translate('hello', 'el', 'ip')
┌─────────┐
│ 'hippo' │
└─────────┘
TRANSLATE(<str>, <from>, <to>)
SELECT TRANSLATE('hello', 'el', 'ip');
┌───────┐
│ hippo │
└───────┘