Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@knudmoeller
Created October 21, 2020 15:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save knudmoeller/e1ff1c3d7ca1ce52083d1cabf6fff647 to your computer and use it in GitHub Desktop.
Save knudmoeller/e1ff1c3d7ca1ce52083d1cabf6fff647 to your computer and use it in GitHub Desktop.
Drush/SQL command to count number of nodes for each node type
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