你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20)
你这种情况,不需要exists,直接where deptno < 20就可以了.
我知道,我就是想了解exists的用法.
你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20) 是不是用到exists的都是用在夺标连接的情况下的。
你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20) 多表连接的情况下你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20) 是不是用到exists的都是用在夺标连接的情况下的。多表连接情况下
你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20) 多表连接的情况下你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20) 是不是用到exists的都是用在夺标连接的情况下的。多表连接情况下 恩,至少需要连个表具有连接条件。 也就是将内外两个查询进行关联起来,这样对外查询才会进行筛选
是不是用到exists的都是用在夺标连接的情况下的。
多表连接的情况下你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20)
是不是用到exists的都是用在夺标连接的情况下的。多表连接情况下
多表连接的情况下你的两个查询都没关联起来,如下:select * from scott.emp t1 where exists (select deptno from scott.emp t2 where t1.empno=t2.empno and t2.deptno < 20)
是不是用到exists的都是用在夺标连接的情况下的。多表连接情况下
恩,至少需要连个表具有连接条件。
也就是将内外两个查询进行关联起来,这样对外查询才会进行筛选