你这种不需要用别名a和b的
然后
select 姓名,年龄 from 学生表 where 年龄>(select avg(年龄) from 学生表 where 性别='女') and 性别='男'
如果报错请截图
11-09 373阅读
10-29 54阅读
06-12 322阅读
07-25 164阅读
04-25 105阅读
05-15 130阅读
11-18 121阅读
05-01 77阅读
08-19 55阅读
09-14 43阅读