【发布时间】:2012-10-19 02:29:20
【问题描述】:
我在 DB 中有一个表,它的空间大约为 90 GB。我试图计算表中的行数
select count(idNewsNotification) from notification 结果是
4982397
1 row in set (59 min 48.35 sec)
但是当我使用show table status like <table_name> 查询时,它显示
Engine: InnoDB
Version: 10
Row_format: Compact
Rows: 8631267
Avg_row_length: 11237
Data_length: 96996425728
Max_data_length: 0
Index_length: 175374336
Data_free: 0
Auto_increment: NULL
.....
知道表中记录数的完美程序是什么?
【问题讨论】:
标签: mysql backup mysqldump table-statistics