网站建设

MySQL批量更新字段url链接中的域名

1. 首先进行数据库备份

2. SQL语句

UPDATE 表名 SET 字段 = REPLACE(字段, ‘待更新的内容’,’替换值’);

eg: UPDATE 98k_images SET url = REPLACE( url, ‘image.98k.com’, ‘static.98k.com’ );

Related Articles

发表回复

Back to top button