Skip to content

Instantly share code, notes, and snippets.

@djonatanb
Created June 2, 2015 23:41
Show Gist options
  • Save djonatanb/108019dff9ad4d953c3b to your computer and use it in GitHub Desktop.
Save djonatanb/108019dff9ad4d953c3b to your computer and use it in GitHub Desktop.
SELECT table_name "Tables",
( data_length + index_length ) / 1024 /
1024 "Table Size in MB",
( data_free )/ 1024 / 1024 "Free Space in MB"
FROM information_schema.TABLES
where table_schema="area"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment