首页 > 代码库 > sql 语句查询数据库大小

sql 语句查询数据库大小

SELECT TABLE_NAME,round((DATA_LENGTH+INDEX_LENGTH)/(1024*1024),2) as ‘size‘,TABLE_ROWS,ENGINE FROM information_schema.TABLES WHERE TABLE_SCHEMA="eload_ebay" and ENGINE=‘MyISAM‘ order by size desc

 

sql 语句查询数据库大小