union all 结果不去重,不可以使用union还有or,这些都是去重的
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';
union all 结果不去重,不可以使用union还有or,这些都是去重的
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';