Oracle_ERRMG

ORA-00900 to ORA-01499

ORA-00904: “【列名】”: 标识符无效

ORA-00904: string: invalid identifier

原因1: 输入的列名称缺失或无效。

The column name entered is either missing or invalid.

ORA-00918: 未明确定义列

ORA-00918: column ambiguously defined

原因1: 多表连接中的列在一个以上的表中存在同名列,导致引用不明。连接中使用的列名称存在于多个表中,因此引用不明。在连接中,任何存在于多表中的列名称在引用时必须以其表名作为前缀。该列应该通过TABLE.COLUMN或TABLE_ALIAS.COLUMN来引用。例如,如果表EMP和DEPT正被连接,且都包含列DEPTNO,则所有对DEPTNO的引用应以表名作为前缀,如EMP.DEPTNO或E.DEPTNO。

A column name used in a join exists in more than one table and is thus referenced ambiguously. In a join, any column name that occurs in more than one of the tables must be prefixed by its table name when referenced. The column should be referenced as TABLE.COLUMN or TABLE_ALIAS.COLUMN. For example, if tables EMP and DEPT are being joined and both contain the column DEPTNO, then all references to DEPTNO should be prefixed with the table name, as in EMP.DEPTNO or E.DEPTNO

ORA-00936: 缺失表达式

ORA-00936: missing expression

原因1: 遗漏了子句或表达式的必需部分。例如,SELECT语句可能没有列或表达式,或表达式不完整。误用保留关键字也会导致此异常,例如在SELECT TABLE中使用保留关键字。

A required part of a clause or expression has been omitted. For example, a SELECT statement may have been entered without a list of columns or expressions or with an incomplete expression. This message is also issued in cases where a reserved word is misused, as in SELECT TABLE.

ORA-00942: 表或视图不存在

ORA-00942: table or view does not exist

原因1: 输入的表或视图不存在,可能使用了不允许的同义词,或者在需要表的情况下引用了视图。可以通过查询数据字典来列出现有的用户表和视图。访问表可能需要某些特定的权限。如果应用程序返回此消息,则应用程序尝试访问的表不存在于数据库中,或应用程序无权限获取它的数据。

The table or view entered does not exist, a synonym that is not allowed here was used, or a view was referenced where a table is required. Existing user tables and views can be listed by querying the data dictionary. Certain privileges may be required to access the table. If an application returned this message, the table the application tried to access does not exist in the database, or the application does not have access to it.