Guest User

Untitled

a guest
Dec 9th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. SELECT CONCAT(table_schema, '.', table_name),
  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. ROUND(index_length / data_length, 2) idxfrac
  7. FROM information_schema.TABLES
  8. ORDER BY data_length + index_length DESC
  9. LIMIT 20
Add Comment
Please, Sign In to add comment