Is there a simple way to merge two wp_posts tables while avoiding duplicates?
Leave a Reply
You must be logged in to post a comment.
Is there a simple way to merge two wp_posts tables while avoiding duplicates?
You must be logged in to post a comment.
Import the new table as
wp_posts_2
, then join them and delete all duplicates based on post_content; then merge the two tables.The following SQL query (untested!) should give the posts from the new table to be deleted:
So, you can delete the entries with this query (also untested):
Then merge the two tables.