ORA-00911: 无效字符 ??///

ORA-00911: invalid character ??///

我正在尝试执行此查询,但收到 ORA-00911:无效字符

SELECT e.empno AS “Employee ID”, e.ename AS “Employee Name”, d.deptno AS “Dept No”, 
d.dname AS “Dept Name”, d.loc AS “Dept Location” FROM emp e, dept d WHERE e.deptno = d.deptno AND e.deptno = 10;
SELECT e.empno AS "Employee ID", 
e.ename AS "Employee Name",
d.deptno AS "Dept No", 
d.dname AS "Dept Name", 
d.loc AS "Dept Location" 
FROM emp e, dept d WHERE e.deptno = d.deptno AND (e.deptno = 10);

你的双引号是错误的。更改引号。

只是说它与错误无关 AS 关键字是可选的 你可以像这样写列别名

e.ename "Employee Name"

在我看来,它也是可读的,但取决于个人选择。