差集
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
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
本文标题:Oracle查询2张表差集、交集、并集
本文链接:https://www.haomeiwen.com/subject/yjtrhltx.html
网友评论