场景我用的数据库是mysql5.6,下面简单的介绍下场景课程表:create table Course(c_id int PRIMARY KEY,name varchar(10))数据100条学生表:create table Student(id int PRIMARY KEY,name varchar(10))数据70000条学生成绩表SC:CREATE table SC( sc_id int PRIMARY KEY, s_id int, c_id int, score int)数据70w条查询目的:查找语文考100分的考生查询语句:select s.* from Student s where s.s_id in (select s_id from SC sc where sc.c_id = 0 and sc.score = 100 )执行时间:30248.271s晕,为什么这么慢,先来查看下查询计划:EXPLAIN select s.* from Student s where s.s_id in (select s_id from SC sc where