explain select count(id) from student
一亿条数据大小为:7,383,040 KB 约为7.04G
表结构:
CREATE TABLE `student` (
`id` bigint(20) NOT NULL auto_increment COMMENT '主键',
`user_name` varchar(255) default NULL COMMENT '姓名',
`add_time` timestamp NOT NULL default CURRENT_TIMESTAMP on update CURRENT_TIMESTAMP COMMENT '添加时间',
PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=utf8;