replace(X,Y,Z) The replace(X,Y,Z) function returns a string formed by substituting string Z for every occurrence of string Y in string X. The BINARY collating sequence is used for comparisons. If Y is an empty string then return X unchanged. If Z is not initially a string, it is cast to a UTF-8 string prior to processing.x:要处理的字符串y:被替换的字符串z:替换后的字符串有图有真相
![](https://images0.cnblogs.com/blog/69929/201410/201623400744052.png)
参考: