This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT concat(table_schema,'.',table_name), | |
concat(round(table_rows/1000000,2),'M') rows, | |
concat(round(data_length/(1024*1024),2),'M') DATA, | |
concat(round(index_length/(1024*1024),2),'M') idx, | |
concat(round((data_length+index_length)/(1024*1024),2),'M') total_size, | |
round(index_length/data_length,2) idxfrac | |
FROM information_schema.TABLES | |
ORDER BY data_length+index_length DESC LIMIT 20; |
0 意見:
張貼留言