xbox360怎么破解,美国航空再发争执,中国特产网
Oracle的集合运算符有并集union、union all,交集intersect,差集minus
先建表myemp,进行集合运算的测试
create table myemp as select * from emp where empno = 7934;
并集
union all不过滤掉集合中重复的数据
union过滤掉集合中重复的数据
1 select * from emp 2 union all 3 select * from myemp; 4 5 select * from emp 6 union 7 select * from myemp;
交集
返回两个集合中相同的数据组成新的查询结果
select * from emp intersect select * from myemp;
差集
返回集合1中独有而集合2中没有的数据组成新的查询结果
select * from emp minus select * from myemp;
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
Oracle字符串函数length、upper、lower、initcap、 concat、instr、replace
网友评论