请教一个问题。望在座的和路过的均不吝赐教!

[复制链接]
查看11 | 回复0 | 2005-10-30 17:05:33 | 显示全部楼层 |阅读模式
select null a from t1返回的值和select a from t1 where 0=1返回的值是否一致?

select * from t2 where t2.a not in (select null a from t1)

select * from t2 where t2.a not in (select a from t1 where 0=1)

select * from t2 where t2.a not in (select a from t1 where t1.a like 'kkkk')
--select a from t1 where t1.a like 'kkkk' 返回的值也是空值。
是否有区别?
我现在碰到的问题是:
select * from t2 where t2.a not in (select a from t1 where t1.a like 'kkkk')
返回的值一会是空,一会儿有结果。
不明白是怎么啦?
个人觉得是oracle 的bug!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行