码迷,mamicode.com
首页 > 数据库 > 详细

oracle bug 12415167

时间:2014-09-04 16:58:39      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:style   color   io   ar   on   c   oracle   rgb   table   

drop table t1;
create table t1 (c1 char(2) primary key, c2 char(1) not null);
insert into t1 values (‘A ‘,‘A‘);
 
select t1.c1 from t1
 where t1.c1 in (select c2 from t1 union all select ‘0‘||c2 c2 from t1);
select /*+ full(t1) */ t1.c1 from t1
 where t1.c1 in (select c2 from t1 union all select ‘0‘||c2 c2 from t1);
 
1st query returns no row, 2nd query return ‘A‘

oracle bug 12415167

标签:style   color   io   ar   on   c   oracle   rgb   table   

原文地址:http://blog.csdn.net/mvccc/article/details/39055095

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!