0

此查询适用于 Oracle Database 10g Enterprise Edition Release 10.2.0.2.0 - 64bi 但不适用于 Oracle Database 11g Release 11.2.0.1.0 - 64bit Production

select * 
  from inb_dosya_turu dosya_turu
 where dosya_turu.adi like 'S%'
   or dosya_turu.id in (select 350 from dual)

问题是什么?

4

1 回答 1

0

我意识到这个问题是由于语言设置而发生的。语言设置的脚本如下。升级 11.2.0.3 后,脚本开始正常工作。我将查询更改为在 SCOTT 模式中查询

alter session set nls_sort = 'TURKISH_AI';
alter session set nls_comp = 'linguistic';

select * from SCOTT.BONUS bonusa
where bonusa.ename like 'S%'
or bonusa.JOB in (select 350 from dual) 
于 2012-09-21T05:27:53.000 回答