select * from 学生表 where 学生表主键id in (select 学生表学生id from 成绩表 where 成绩字段 between 80 and 100)或select * from 学生表 where 学生表主键id in (select 学生表学生id from 成绩表 where 成绩字段>=80 and 成绩字段<=100)