集合相加
union all(两个集合直接相加,允许重复)
select * from table1
union all
select * from table2
集合并集
union(两个集合的并集)
select * from table1
union
select * from table2
集合交集
intersect(两个集合的交集)
select * from table1
intersect
select * from table2
集合相减
except(两个集合相减)
(
select * from table1
union
select * from table2
)
except
(
select * from table1
intersect
select * from table2