多表联合查询SQL语句问题

2025-04-16 14:04:51
推荐回答(1个)
回答1:

select 姓名,性别,年龄,职业 from A where 年龄=28 and 性别=‘女’ and 职业=‘医生’
union select 姓名,性别,年龄,职业 from B where 年龄=28 and 性别=‘女’ and 职业=‘医生’
union select 姓名,性别,年龄,职业 from C where 年龄=28 and 性别=‘女’ and 职业=‘医生’