[英]Getting Error while running the Procedure
Hi All I am getting an error while running below procedure like 嗨所有我在运行下面的程序时遇到错误
Encountered the symbol "END" while expecting below symbol :=)
遇到符号“END”,同时期望下面的符号:=)
My procedure is created with: 我的程序创建时:
create or replace procedure employee_details is
cursor emp_cur is select ename,desig,salary from emp;
emp_rec emp_cur%rowtype;
begin
for emp_rec in sales_cur
loop
dbms_output.put_line(emp_cur.ename||''||emp_cur.desig||''||emp_cur.salary);
end loop;
end;
/
I am trying to run like: 我试图像:
begin
employee_details
End;
If you're really calling the procedure as: 如果你真的把这个程序称为:
begin employee_details End;
... then you're missing a semicolon; ......然后你错过了一个分号; it should be:
它应该是:
begin employee_details; end;
Or maybe more generally formatted as: 或者更普遍的格式为:
begin
employee_details;
end;
/
It isn't really clear if that is your problem since the procedure won't compile as shown, due to the emp_cur
/ sales_cur
name mismatch noted the comments. 由于
emp_cur
/ sales_cur
名称不匹配注释了注释,因此该过程不会如图所示进行编译,这是不是很清楚。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.