1、创建
create or replace procedure firstTest
as
begin
dbms_output.put_line('hello first test');
end;
2、调用
----方法一
使用execute,也可以简写为exec
execute firstTest()
---方法二---
begin
firstTest();
firstTest();
end;
set serveroutput on 是为了打开命令行中的输出功能,可以在cmd中输出内容;