时间:2021-07-01 10:21:17 帮助过:108人阅读
--第一个存储过程:打印Hello World
/*
调用存储过程2种方式:
1、exec sayhelloworld();
2、begin
sayhelloworld();
sayhelloworld();
end;
/
*/
create or replace procedure sayhelloworld --假设这个存储过程存在就replace替换否则create创建,这里创建无參数的存储过程
as --不可省略
begin
dbms_output.put_line(‘Hello World‘);--注意不是双引號而是单引號,否则调用存储过程会报错
end;
/
oracle学习之第一个存储过程:打印Hello World
标签:返回值 sqlplus user return bsp username 函数 style 存储