【发布时间】:2018-06-04 23:11:19
【问题描述】:
我正在为这个奇怪的事情苦苦挣扎(不要理会这个例子的含义,它只是一个突出问题的示例)。 以下代码在 Oracle 12.1.0.2.0 上运行良好,但在 11.2.0.3.0 上运行失败。
create table test_0 as
select 1 as un, 2 as deux
from dual
;
create table test_1 as
select 1 as un, 3 as trois
from dual
;
select deux
from test_0 t0
where exists (select 1 from (select trois from test_1 t1 where t1.un =
t0.un))
;
有人对此有解释吗?
【问题讨论】:
-
“运行良好......但失败......”是什么意思?任何错误信息?你期望什么,你会得到什么?