分类: Mysql/postgreSQL
2011-10-25 23:07:05
plumlee2014-05-06 00:29:46
UPDATE wp_options SET option_value = REPLACE(option_value,'旧地址','新地址');
UPDATE wp_posts SET post_content = replace(post_content,'旧地址','新地址');
UPDATE wp_posts SET post_excerpt= replace(post_excerpt,'旧地址','新地址');
UPDATE wp_posts SET guid= replace(guid, '旧地址','新地址');
###要注意,是单引号,而不是双引号####