Skip to content

Instantly share code, notes, and snippets.

@simesy
Created November 15, 2019 06:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save simesy/d4dec3d04ef6909b97a496be4d71182f to your computer and use it in GitHub Desktop.
Save simesy/d4dec3d04ef6909b97a496be4d71182f to your computer and use it in GitHub Desktop.
Quick table rows with drush
for t in $(drush sqlq "show tables"); do echo $(drush sqlq "SELECT '$t' n, COUNT(*) r FROM $t") ; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment