1.存储过程
**创建存储过程**
- create [or replace] procedure 存储过程名
[(参数1 类型,参数2 out 类型……)]
as
变量名 类型;
begin
程序代码体
end;
示例1:无参无返(使用存储过程打印你好世界,我的名字是张先生)
Create Or Replace Procedure myDemo01
As
Begin
dbms_output.put_line('hello word ,my name is MrZhang');
End;
//执行存储过程
Declare
Begin
myDemo01;
End;
ps:
or replace代表创建该存储过程时,若存储名存在,则替换原存储过程,重新创建 无参数列表时,不需要写()
示例二: 变量声明 赋值
Create Or R