ORA-30036 while running a Procedure [message #638263] |
Mon, 08 June 2015 10:18 |
|
Jaise
Messages: 6 Registered: August 2012 Location: India
|
Junior Member |
|
|
Hi,
I am trying to update all column with zero but it is failing with error ORA-30036. The procedure I am using is
begin
FOR i in 1985..2015 loop
EXECUTE IMMEDIATE 'update TEMP set RESULT_'||i|| '= 0';
END LOOP;
COMMIT;
END;
I have the columns name RESULT_1985, RESULT_1986,...,RESULT_2015 and have a half million row in the table. Intend to add zero is to ease the calculation which I will be doing later. Does this work properly if I commit after every 1000 update
|
|
|
|
|
|
|
|
|
|