【问题标题】:"Procedure created with compilation error" cause by ORA-00936ORA-00936 导致的“过程创建时出现编译错误”
【发布时间】:2018-02-14 05:43:18
【问题描述】:

我已经创建了一个程序:

Create or Replace Procedure GetTotalEmployeesByDepartment
(
deptno in Employees.Department_Id%Type,
totalEmployees out number
)
as
begin
select cout(*) into totalEmployees from Employees
where Department_Id = deptno;
end;
/

结果:

Warning: Procedure created with compilation errors.

当我输入时:

show errors;

显示的命令行:

LINE/COL   ERROR
8/1        PL/SQL: SQL Statement ignored
8/13       PL/SQL: ORA-00936: missing expression

你知道什么地方会出错吗?为什么 SQL 忽略“cout”语句而缺少“*”?

【问题讨论】:

    标签: java sql oracle procedure


    【解决方案1】:

    不应该是nt(*)和n吗:)

    【讨论】:

    • 比另一个可能的错别字更好
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-10-19
    • 2021-12-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多