![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
oracle
s343174147
这个作者很懒,什么都没留下…
展开
-
exists
in和select的技术原理: ㈠ in:先进行子查询,再进行主查询 ㈡ exists:先进行主查询,再到子查询中过滤in和exists的使用建议:Ⅰ 如果限制性强的条件在子查询,则使用inⅡ 如果限制性强的条件在主查询,则使用exists可用查询结果集来理解上面这段话,采用最优化匹配原则:拿最小记录匹配大记录。限制性强,则结果集小;反之,则大。 注释:① 使用...原创 2013-09-08 20:59:55 · 89 阅读 · 0 评论 -
Oracle中的Union、Union All、Intersect、Minus (左右外)连接
假设我们有一个表Student,包括以下字段与数据:drop table student;create table student(id int primary key,name nvarchar2(50) not null,score number not null);insert into student values(1,'Aaron',78);...原创 2013-09-08 22:15:51 · 182 阅读 · 0 评论