SQL查看數據庫中每張表的數據量和總數據量
查看所有表對應的數據量 查看數據庫的總數據量 ...
查看所有表對應的數據量 查看數據庫的總數據量 ...
1、查看某個數據庫,直接執行存儲過程sp_spaceused即可 2、查看某個表,在存儲過程后面加上表名即可 3、查看該數據庫中的所有表,可以寫一個存儲過程,然后執行即可 存儲過程 ...
...
源地址:http://blog.csdn.net/zhanggnol/article/details/6683697 select t.table_name,t.num_rows from user_tables t ORDER BY NUM_ROWS DESC; 還可以直接查看dblink ...
mysql> select table_name, table_rows from information_schema.tables where TABLE_SCHEMA = 'xcdqm'; ...
select table_name,table_rows from information_schema.tables where TABLE_SCHEMA = '庫名' order by table_rows desc; ...
1、登錄mysql 2、使用命令:use information_schema; 3、使用命令:select table_name,table_rows from tables where TAB ...