#先查出条件为:山东大学 select device_id,gender,age,gpa from user_profile where user_profile.university = '山东大学' union all #将上边的查询和下面的查询合成一个结果集(加 all可以有重复的,不加相反) select device_id,gender,age,gpa from user_profile where user_profile.gender = 'male'; 两个查询,一个先查出条件为 山东大学的,另个查出性别为男的,然后两个查询中间用 union all 合成一个结果集.