Skip to content

Instantly share code, notes, and snippets.

@rwkyyy
Last active September 22, 2018 14:31
Show Gist options
  • Save rwkyyy/8cad5438e4f80293e2b23034c13fe955 to your computer and use it in GitHub Desktop.
Save rwkyyy/8cad5438e4f80293e2b23034c13fe955 to your computer and use it in GitHub Desktop.
clean orphaned _postmeta
select post_id from wprh_postmeta pm where pm.post_in not in (select ID from wprh_posts)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment