Skip to content

Instantly share code, notes, and snippets.

@vdubyna
Created October 6, 2014 17:08
Show Gist options
  • Select an option

  • Save vdubyna/fb68341d88efa4e6e53e to your computer and use it in GitHub Desktop.

Select an option

Save vdubyna/fb68341d88efa4e6e53e to your computer and use it in GitHub Desktop.
SELECT table_name AS "Tables",
round(((data_length + index_length) / 1024 / 1024), 2) "Size in MB"
FROM information_schema.TABLES
WHERE table_schema = "oneida"
ORDER BY (data_length + index_length) DESC;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment