应该这样吧
select empno,ename,job,sal
from scott.emp
where exists(select 'x' from scott.dept where scott.dept.deptno=scott.emp.deptno);相当于:
select empno,ename,job,sal
from scott.emp
where deptno in (select deptno from scott.dept);
select empno,ename,job,sal
from scott.emp
where exists(select 'x' from scott.dept where scott.dept.deptno=scott.emp.deptno);相当于:
select empno,ename,job,sal
from scott.emp
where deptno in (select deptno from scott.dept);
解决方案 »
- Oracle ./runInstaller权限错误!
- 为什么我运行自己编写的过程不能得出结果呢,哪里错了呢
- oracle数据库时间点恢复不成功
- 很简单的问题:plsql中,怎样运行shutdown immediate语句?
- 刚用存储过程,此存储过程错误,请指正
- oracle9.2.0.1升级为9.2.07时无法出现"universal installer" 升级界面???
- 请教用虚拟机VMware Workstation在XP系统上安装Unix学习Oracle数据库是否可行
- 在ORACLE存储过程中能不能将一个字符串分割成数组
- 我装了oracle8i用system/manager在sqlplus里能连上但在console里用system/manager/机器名为什么连不上呢?谢谢帮忙!
- RedHat9下安装Oracle9i又遇到新问题,请教各位!
- 哪儿能下载到LogMiner??
- 我的一台装有oracle的笔记本带动了100台客户端,高兴散分
select emp.empno,emp.ename,emp.job,emp.sal
from scott.emp,scott.dept
where exists(select 1 from scott.emp where scott.dept.deptno=scott.emp.deptno);
效果会更好。