Oracle ORA-00904: ***: Invalid identifier Solution

Source: Internet
Author: User

ORA-00904: "***" invalid identifier

The possible cause of this error is that a field name in your SQL statement is incorrect,

Or the table name is wrong. In short, this type of error occurs basically because in SQL statements,

The field name does not correspond to the table. This table may exist, but the field does not exist or the table does not exist.

For example, select deptname from Stu; // at this time, the field deptname is not in the stu table.

Or

Select deptname from ABCD; // at this time, the ABCD table is a table that does not exist in the database. In other words, you have written the wrong table name.

The same error occurs in insert into dept (deptno, deptname, stuno) values (...) because the dept field does not contain the stuno field.

It is also possible that a comma is added when the last field is created during table creation.

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.