SHOW TABLE STATUS dbname
返回数组:
Name: xxx (表名)
Engine: MyISAM (表引擎)
Version: 10 (版本)
Row_format: Dynamic (行格式)
Rows: (表内总行数)
Avg_row_length: (平均每行大小,这里是4.7K)
Data_length: (该表总大小,单位字节)
Max_data_length: (该表可存储上限)
Index_length: (索引大小)
Data_free: (数据多余)
Auto_increment: (自动累加ID 6W9,而前面的行数只有5W6,说明我有删掉了1W3笔数据)
Create_time:
Update_time:
Check_time:
Collation: 编码
Checksum:
Create_options: row_format=DYNAMIC
Comment: (注释)
数据库的大小=表结构+表数据+索引 实际情况大多采用Data_length+Index_length(DZ就是这么干的)
阅读(1175) | 评论(0) | 转发(0) |