ORA-00918:未明確定義列

來源:互聯網
上載者:User

有一條SQL語句,類似如下:

select ...,createdate from A left join B on ... where ...

其中createdate欄位在表A和表B上都存在。在本地的Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 上執行正常,而且createdate顯示的值為B表裡面該欄位的資訊。

但是在客戶現場,資料庫版本為Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 ,上面的語句就報錯:ORA-00918:未明確定義列

看來Oracle版本不一樣,對該問題的處理方式也是不一樣的。

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.