Below is my procedure....
There is no table called "pratik" in my database so that the procedure give error.
so that exception is fire ......but it cant rollback 2 insert statement that is written above DDL statement...
Here i want to rollback the 2 insert statement also....
can any one help me.....
Plz
CREATE OR REPLACE procedure temp
as
begin
insert into t values(1);
insert into t values(2);
EXECUTE IMMEDIATE 'DROP TABLE PRATIK';
insert into t values(4);
EXCEPTION
WHEN OTHERS THEN
Rollback;
end;
There is no table called "pratik" in my database so that the procedure give error.
so that exception is fire ......but it cant rollback 2 insert statement that is written above DDL statement...
Here i want to rollback the 2 insert statement also....
can any one help me.....
Plz
CREATE OR REPLACE procedure temp
as
begin
insert into t values(1);
insert into t values(2);
EXECUTE IMMEDIATE 'DROP TABLE PRATIK';
insert into t values(4);
EXCEPTION
WHEN OTHERS THEN
Rollback;
end;
Comment