Home > Database > Mysql Tutorial > body text

MySQL批量替换单字段数据

WBOY
Release: 2016-06-07 17:51:14
Original
989 people have browsed it

一个简单的update与replace结合就可以实现在mysql数据库中实现数据库字段中的部份字符进行替换了,有需要的朋友参考下。

 代码如下 复制代码
update content_type_center set field_center_url_value =  replace(字段名,'要替换','替换成的内容');
Related labels:
source:php.cn
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!