1、存储过程有两种形式,procdure和package,你编写的好像时procdure。
2、是。
3、
create or replace procedure Test_procedures is
begin
Insert into test (PName,age) values('hehe',12);
end Test_procedures;
2、是。
3、
create or replace procedure Test_procedures is
begin
Insert into test (PName,age) values('hehe',12);
end Test_procedures;
begin
过程名
end;你的过程多了一个(),没有参数的情况下不需要()
我建了之后保存了,可是展开左边存储过程的树,却找不到:(
回答:当然找不到,需要经过编译成功后,你才可以在看到这个过程。2.建了一个过程之后怎么执行,是点右键菜单里面的Test吗?
一般在file\new\program window\blank 里面编译代码。3.存储过程是不是要先编译?那么为什么以下这段存储过程编译不行呢?create or replace procedure Test_procedures
is
begin
Insert into test (PName,age) values('hehe',12);
end Test_procedures;
is
begin
Insert into test(PName,age) values('hehe',12);
commit; <------执行后要提交,
exception <------如果出现异常,则回滚
when others then
rollback;
end Test_procedures;
--测试:
打开pl/sql developer, file\new\command windowsSQL> EXECUTE Test_procedures;SQL> SELECT * FROM test;