// union把两个查询到的表上下黏起来,会去重.(列名,列数 需要保持一致) //union all 直接黏,不去重 select device_id, gender, age, gpa FROM user_profile where university = '山东大学' union all select device_id, gender, age, gpa FROM user_profile where gender = 'male';