--存储过程第一次练习
--创建一个测试表
create table mytest(name varchar2(30),password varchar2(30));
--创建一个插入存储过程
create or replace procedure pl_insert_mytest is
begin
insert into mytest values('zxgllhh','123456');
end;
/
--创建一个删除存储过程
create or replace procedure pl_delete_mytest is
begin
delete mytest where name = 'zxgllhh';
end;
/
-- find errors...
-- show error;
--调研存储过程
--调用存储过程最好用call,call是标准的sql语法,exec只能在sqlplus或命令窗口下使用。
--exec pl_insert_mytest();
call pl_insert_mytest();
call pl_delete_mytest();