很好用哦。
批量替换:
UPDATE wp_posts SET post_content = REPLACE( post_content, '原内容', ' 新内容' ) ;批量替换某字条的第一个字符(占两位,所以是2);
update wp_posts set post_content=substring(post_content,2) WHERE post_status = 'draft'
本文介绍了一种在WordPress中进行批量文本替换的方法,包括整体替换及针对草稿状态文章的部分替换操作。通过SQL语句实现,提高了编辑效率。
很好用哦。
批量替换:
UPDATE wp_posts SET post_content = REPLACE( post_content, '原内容', ' 新内容' ) ;
update wp_posts set post_content=substring(post_content,2) WHERE post_status = 'draft'
1023