4 月更新过文章,文章 ID 停留在 146,5 月忙于考试,文章一篇都没写,结果 6 月前几天写文章的时候,ID 从 146 直接跳到 148,也不知道什么原因,我
的 WordPress 是做过处理的 ID 是会自动连续的。打开数据库,把文章 ID 为 148 的改成 147,完整的 SQL 语句如下:

复制代码代码如下:
update wp_posts set id = 147 where id = 148;
update wp_term_relationships set object_id = 147 where object_id = 148;
update wp_postmeta set post_id = 147 where post_id = 148;
update wp_comments set comment_post_ID = 147 where comment_post_ID = 148;