Why Oracle 10g doesn't complain about column ambiguity?

只谈情不闲聊 提交于 2019-11-29 06:26:37

I believe it is a bug in Oracle 10g that Oracle chose not to fix. When we were upgrading our applications from 10g to 11gR2, we found a couple of queries that were written "loosely" in respect of ambiguous column names but worked in Oracle 10g. They all stopped working in 11gR2. We contacted Oracle but they pretty much said that the tolerant behavior toward ambiguous column names is a correct behavior for Oracle 10g and the stringent behavior is the correct behavior for 11g.

I think it is, because departments have no alias. Therefore everything without being qualified by an <alias>. is first treated to be from departments.

So I also think when you give departments an alias you should get the ORA-00918 again. Cannot test here though...

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!