Oracle查询2张表差集、交集、并集

2021-03-25  本文已影响0人  打不死的小强8号

差集

select 字段1 from 表1 minus select 字段1 from 表2

交集

select 字段1 from 表1 intersect select 字段1 from 表2

并集

select 字段1 from 表1 union all select 字段1 from 表2

上一篇 下一篇

猜你喜欢

热点阅读