取每种性别的 第一个学生:
select * from student where student_id in(Select min(student_id) FROM student group by sex)
数据库student表:
查询结果:
取每种性别的 第一个学生:
select * from student where student_id in(Select min(student_id) FROM student group by sex)
数据库student表:
查询结果: