站内搜索

WordPress 修改某文章ID的SQL语句

进入PHPMyAdmin,执行以下SQL语句,即可实现将214的文章ID改为213,亲测无误。

update wp_posts set id = 213 where id = 214;
update wp_term_relationships set object_id = 213 where object_id = 214;
update wp_postmeta set post_id = 213 where post_id = 214;
update wp_comments set comment_post_ID = 213 where comment_post_ID = 214;
Copyright © XiakeShu.com 版权所有 | 备案号:浙ICP备11004787号-12