WordPress 教程:修改某篇文章 ID(把 ID 為 55 的改成 56) 的 SQL 語句
開啟資料庫,把文章 ID 為 55 的改成 56,完整的 SQL 語句如下:
程式碼如下:
update wp_posts set id = 55 where id = 56;
update wp_term_relationships set object_id = 55 where object_id = 56;
update wp_postmeta set post_id = 55 where post_id = 56;
update wp_comments set comment_post_ID = 55 where comment_post_ID = 56;