我在控制台下创建了一个存储过程:create procedure myProc as
begin
dbms_output.put_line('hello world!');
end然后再 查询时,并没有该存储过程:
select * from user_procedures;然后 用:
exec myProc时出错,提示:对象无效请问什么原因,该怎么做,谢谢
begin
dbms_output.put_line('hello world!');
end然后再 查询时,并没有该存储过程:
select * from user_procedures;然后 用:
exec myProc时出错,提示:对象无效请问什么原因,该怎么做,谢谢
begin
dbms_output.put_line('hello world!');
end;楼主少了个分号,没编译成功
不知道LZ使用什么工具~
如果是sqlplus貌似需要在最后加“/”来执行的。
2 as
3 begin
4 dbms_output.put_line('hello world!');
5 end;
6 /过程已创建。SQL> exec myProc;PL/SQL 过程已成功完成。SQL> set serveroutput on
SQL> /过程已创建。SQL> exec myProc;
hello world!
2 as
3 begin
4 dbms_output.put_line('hello world!');
5 end;
6 /过程已创建。SQL> exec myProc;PL/SQL 过程已成功完成。SQL> set serveroutput on
SQL> /过程已创建。SQL> exec myProc;
hello world!