Created
October 21, 2020 15:26
-
-
Save knudmoeller/e1ff1c3d7ca1ce52083d1cabf6fff647 to your computer and use it in GitHub Desktop.
Drush/SQL command to count number of nodes for each node type
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
drush sqlq 'select count(node.nid) as node_count, node_type.type from node inner join node_type on node.type = node_type.type group by node_type.type' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment