explain select count(id) from student


mysql超一亿条记录中快速查询总记录条数


一亿条数据大小为: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;



相关文章:

  • 2022-02-09
  • 2021-12-27
  • 2022-12-23
  • 2022-12-23
  • 2022-02-09
  • 2022-02-03
  • 2021-11-24
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-06-28
  • 2022-02-09
  • 2022-12-23
  • 2022-12-23
  • 2022-01-25
相关资源
相似解决方案