Home > Database > Mysql Tutorial > mysql replace函数用法实例

mysql replace函数用法实例

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-02 09:13:03
Original
1133 people have browsed it

语法:replace(object,search,replace) 
描述:把object中的search全部替换为replace。

实例如下:

<code>UPDATE school_more_info SET comments = replace( comments, '�', "'" )</code>
Copy after login

将comments字段中的特殊字符�替换为’。

Related labels:
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template