mysql的replace函数替换字符串有哪些呢?
mysql的replace函数替换字符串有哪些呢?
查 mysql 里的 replace 函数 update `xxx` set `a` = replace(`a` , ’要替换的’ , ’替换为的’) where xxx ===PHPCHINA.COM=============================================================== update `xxx` set `a` = replace(`a` , ’要替换的’ , ’替换为的’) where xxx update `music` set `file` = replace(`file` , ’’ , ’ddd’) where id SELECT REPLACE(’www.mysql.com’, ’w’, ’Ww’); -> ’WwWwWw.mysql.com’ 这个函数是多字节安全的。
答:用for循环,查找到整串和2串相符的后整体删除详情>>