select table_schema, sum((data_length+index_length)/1024/1024) AS "Total size(table+index) Mb", sum(data_length/1024/1024) as "table size", sum(index_length/1024/1024) as "index size" from information_schema.tables group by table_schema;
-
-
Save wilkice/615ecee9c7514941be84c2854212458c to your computer and use it in GitHub Desktop.
常用SQL #sql
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment