Home >Database >Mysql Tutorial >用SQL语句实现替换字符串

用SQL语句实现替换字符串

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-07 17:57:331160browse

这样可以方便我们直接在数据库中替换字符

UPDATE Friend set Name = REPLACE(Name,'脚本,'脚本之家www.jb51.net')超级简单
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn