update `wp_posts` set `post_content`=REPLACE(`post_content`,‘localhost/linkcp‘,‘www.linkcp.cn‘) where `post_content` like ‘%localhost/linkcp%‘;
替换wp_post表post_content列中的localhost/linkcp字段为www.linkcp.cn
查询条件是post_content字段中有类似localhost/linkcp的字段
时间: 2024-10-08 08:03:25