Advertisement
Sorok7

Untitled

Feb 20th, 2013
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.57 KB | None | 0 0
  1. SELECT CONCAT(table_schema, '.', table_name) AS tbl,
  2.                  CONCAT(ROUND(table_rows / 1000000, 2), 'M')                                    ROWS,
  3.                  CONCAT(ROUND(data_length / ( 1024 * 1024 * 1024 ), 2), 'G')                    DATA,
  4.                  CONCAT(ROUND(index_length / ( 1024 * 1024 * 1024 ), 2), 'G')                   idx,
  5.                  CONCAT(ROUND(( data_length + index_length ) / ( 1024 * 1024 * 1024 ), 2), 'G') total_size
  6.           FROM   information_schema.TABLES
  7.           ORDER  BY data_length + index_length DESC
  8.           LIMIT  10;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement