加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

Oracle_SET操作符

发布时间:2020-12-12 18:47:19 所属栏目:百科 来源:网络整理
导读:SET操作符 1.SET操作符 UNION / UNION ALL 取并集 两者区别: 如果两个集合为{1,2,3}和{2,4} UNION结果为 1,3,4 UNION ALL 结果为 1,4 //不会删除重复元素 INTERSECT 交集 MINUS 差集 2.例 select employee_id from employee01 union select employee_id fro

SET操作符

1.SET操作符 UNION / UNION ALL 取并集 两者区别: 如果两个集合为{1,2,3}和{2,4} UNION结果为 1,3,4 UNION ALL 结果为 1,4 //不会删除重复元素
INTERSECT 交集
MINUS 差集 2.例 select employee_id from employee01 union select employee_id from employee02 取两个部门编号并集,去重

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读