Chinaunix首页 | 论坛 | 博客
  • 博客访问: 561506
  • 博文数量: 49
  • 博客积分: 8051
  • 博客等级: 中将
  • 技术积分: 1846
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-27 12:05
文章分类

全部博文(49)

文章存档

2011年(1)

2010年(4)

2009年(18)

2008年(26)

我的朋友

分类: Oracle

2008-10-23 17:05:33

2) semi joins are joins that stop when the first hit is encountered. They are used many times for "existence" checks. 
select * from dept where deptno in (select deptno from emp); 

that could use a semi join of DEPT to EMP - it would only join each DEPT record to at most ONE emp record - not all of the EMP records as that would create too many DEPT rows. So, it 'semi joins' them.

阅读(1583) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~