phpmyadmin利用mysql命令替换内容

mysql命令替换内容简单快速

用phpmyadmin找到想替换的内容所在表和字段,用下面的代码直接替换

UPDATE `表名` SET `字段名` = replace (`字段名`,'旧的内容','新的内容');

UPDATE `mt_offers` SET `offer_url` = replace (`offer_url`,'global.com','local.com');

UPDATE `mt_rules` SET `url` = replace (`url`,'old content','new content');

Leave a Comment