格式:
create [or replace] procedure pro_name [] is|as begin ....; [exception] ....; end [pro_name];
is和as意思相同
例子:
create or replace procedure pro_insertName is begin insert into STUDENT values(1,‘tom‘); commit; dbms_output.put_line(‘插入成功!‘); end; /
执行
execute pro_insertName;
简写
exec pro_insertName;
时间: 2024-10-12 00:16:39