How to View Table size,rows with table names using query in mysql...

Hi Friends,
                  If you want to see the table details like how much size are using the table and how many   rows contained in table with table name wise, then its very simple please use below mentioned query. and see the result.

SELECT TABLE_NAME AS "Table Name", table_rows AS "Quant of Rows",  ROUND((data_length + index_length)/(1024*1024),2) AS "Total Size Mb" FROM information_schema.TABLES WHERE information_schema.TABLES.table_schema='databasename';

Regards,
Sampan

Comments

Popular posts from this blog

How to Read Excel File in VC++....

Window could not start the Apache tomcat 6 on Local Computer.For more information, review the System Events Logs.If this is a non-Microsoft service,contact service vendor, and refer to service-specific error code 0.

How to Bind Multiple SMPP Acounts Using Kannel SMS Gateway.