replace
replaceβ
descriptionβ
Syntaxβ
VARCHAR REPLACE (VARCHAR str, VARCHAR old, VARCHAR new)
replace all old substring with new substring in str
exampleβ
mysql> select replace("http://www.baidu.com:9090", "9090", "");
+------------------------------------------------------+
| replace('http://www.baidu.com:9090', '9090', '') |
+------------------------------------------------------+
| http://www.baidu.com: |
+------------------------------------------------------+
keywordsβ
REPLACE