Oracle ORA-00904標識符無效__Oracle

來源:互聯網
上載者:User

ORA-00904 invalid identifier 
出現這種錯誤的原因很有可能是,你的SQL語句中的某個欄位名寫錯了,

或者是表名寫錯了,等等,總之都很複雜!欄位名與表不對應,有可能是有這個表,但是欄位沒有;或是表不存在。

例如:select deptname from stu;//此時,stu表中沒有deptname這個欄位

select deptname from abcd;//此時abcd這個表是一個資料庫中不存在的表,換言之,就是你寫錯了表名。

凡此種種,如 insert into dept(deptno,deptname,stuno) values(....) 也會出現同樣的錯誤,因為dept中沒有stuno欄位。

還有可能:是在建立表的時候,建立最後一個欄位的時候也加了逗號.

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.