select * from student where stdid not in (select stdid from dormcheckinfo where stdid is not null)这个语句要10分钟才能执行玩,怎么优化?dormcheckinfo 是宿舍安排表(30000条记录),student是学生表(50000条记录),这个语句时要查出那些没有安排住宿的学生的信息,一个床铺没按排学生时设定stdid字段为null 该如何差,请各位高手赐教,不过我没分,还请海涵