mysql 执行sql替换操作

UPDATE wp_posts SET post_content = REPLACE(post_content, '旧字符', '新字符') WHERE post_type = 'post' AND post_status = 'publish' and post_content like '%旧字符%';
Categories: 数据库运维