Created
February 25, 2015 06:18
-
-
Save ianthekid/b1d17a6208589dd1d421 to your computer and use it in GitHub Desktop.
Delete orphan wp_postmeta rows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT * | |
| FROM wp_postmeta pm | |
| LEFT JOIN wp_posts wp ON wp.ID = pm.post_id | |
| WHERE wp.ID IS NULL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment