日期:2014-05-17 浏览次数:20841 次
SQL> select empno,dept.deptno,dname
2 from emp,dept
3 where emp.deptno(+)=dept.deptno and emp.deptno(+)=10;
EMPNO DEPTNO DNAME
---------- ---------- --------------
7782 10 ACCOUNTING
7934 10 ACCOUNTING
7839 10 ACCOUNTING
20 RESEARCH
30 SALES
40 OPERATIONS
已选择6行。
1 select empno,emp.deptno,dname
2 from emp,dept
3* where emp.deptno(+)=dept.deptno and emp.deptno(+)=10
SQL> /
EMPNO DEPTNO DNAME
---------- ---------- --------------
7782 10 ACCOUNTING
7934 10 ACCOUNTING
7839 10 ACCOUNTING
RESEARCH
SALES
OPERATIONS
已选择6行。