浏览 2
定义和用法
REPLACE() 函数将字符串中所有出现的子字符串替换为新的子字符串。
注释:此函数执行区分大小写的替换。
语法
REPLACE(string, from_string, new_string)
参数值
| 参数 | 描述 |
|---|---|
| string | 必需。原字符串 |
| from_string | 必需。要替换的子字符串 |
| new_string | 必需。新的替换子字符串 |
技术细节
| 适用于: | From MySQL 4.0 |
|---|