Created
December 20, 2012 22:49
-
-
Save navitronic/4349285 to your computer and use it in GitHub Desktop.
SQL snippet to get an overview of the types of content in your `wp_posts` table.
This file contains 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 post_type, COUNT(*) AS total | |
FROM wp_posts GROUP BY post_type; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment