Skip to content

Instantly share code, notes, and snippets.

@nd3w
Created August 3, 2019 09:12
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 nd3w/dde9fa08b51b3b64c23c30c16038c125 to your computer and use it in GitHub Desktop.
Save nd3w/dde9fa08b51b3b64c23c30c16038c125 to your computer and use it in GitHub Desktop.
Important query for MySQL
Get how many rows in whole database
SELECT SUM(TABLE_ROWS)
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'db_name';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment