仔细阅读下面显示的两条错误消息。
第一条错误消息说,
ERROR at line 1:
ORA-00904: "DEPT": invalid identifier
第二条错误消息说,
ERROR at line 1:
ORA-00904: "LOC": invalid identifier
以下是我的陈述:
SQL> select ename, deptno from emp;
ENAME DEPTNO
---------- ----------
SMITH 20
ALLEN 30
WARD 30
......
14 rows selected.
SQL> select ename, loc, dept from emp;
select ename, loc, dept from emp
*
ERROR at line 1:
ORA-00904: "DEPT": invalid identifier
SQL> select ename, dept, loc from emp;
select ename, dept, loc from emp
*
ERROR at line 1:
ORA-00904: "LOC": invalid identifier