Invalid Oracle ORA-00904 identifier __oracle

Source: Internet
Author: User

ORA-00904 Invalid identifier
The reason for this error is most likely that one of the field names in your SQL statement is incorrectly written,

or the table name is wrong, and so on, in short, it is very complicated! The field name does not correspond to the table, it may have this table, but the field is not, or the table does not exist.

For example: Select Deptname from stu;//at this point, Stu table does not have deptname this field

Or

Select Deptname from abcd;//at this time ABCD this table is a table that does not exist in a database, in other words, you are writing the wrong table name.

All these, such as INSERT INTO dept (Deptno,deptname,stuno) VALUES (...) will also appear the same error, because there is no Stuno field in Dept.

It's also possible that when you create a table, the last field is created with a comma.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.