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;