老季博客
MySQL的批量替换,可以使用 REPLACE 函数,下面是具体用法:
REPLACE(field,find_str,replace_str): 字段field的内容中的find_str 将被 替换为 replace_str 。
REPLACE(field,find_str,replace_str):
find_str
replace_str
例如:
update wp_posts set post_content=replace(post_content,'www.jjhr.net','www.jiloc.com');
已发布
分类
作者:
腾讯云/服务器VPS推荐评测/Vultr
标签
您的电子邮箱地址不会被公开。 必填项已用*标注
评论 *
显示名称 *
电子邮箱地址 *
网站地址
如果有人回复我的评论,请通过电子邮件通知我。
Δ
发表回复