Created
November 15, 2019 06:40
-
-
Save simesy/d4dec3d04ef6909b97a496be4d71182f to your computer and use it in GitHub Desktop.
Quick table rows with drush
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
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