--创建
create or replace procedure pro_test
as
begin
null;
endcall pro_test; -- 不能执行
begin pro_test;end; --还是不能执行
谢谢。
create or replace procedure pro_test
as
begin
null;
endcall pro_test; -- 不能执行
begin pro_test;end; --还是不能执行
谢谢。
create or replace procedure pro_test
as
begin
null;
end;
明白了。谢谢。call pro_test; -- 这个为什么还是不行?
begin pro_test;end; --可以了!
SQL> CREATE OR REPLACE PROCEDURE pro_test AS
2 BEGIN
3 NULL;
4 END;
5 /过程已创建。SQL>
SQL> CALL pro_test();调用完成。SQL> /调用完成。SQL> exec pro_test;PL/SQL 过程已成功完成。SQL> DECLARE
2 BEGIN
3 pro_test;
4 END; --能执行
5 /PL/SQL 过程已成功完成。SQL>
2、sqlplus中还可以exec <存储过程名> 来执行。
2 as
3 begin
4 null;
5 end;
6 /Procedure createdSQL> call pro();Method called
SQL> begin pro;end;
2 /PL/SQL procedure successfully completed我的机器上这样完全没问题,我也在初学存储过程,可以多交流下,交个好友