Mega Code Archive

 
Categories / Oracle PLSQL / PL SQL
 

Commit an insert statement in PL SQL

SQL> SQL> create table t ( x int ); Table created. SQL> SQL> SQL> begin   2          for i in 1 .. 100000   3          loop   4                  insert into t values ( i );   5                  commit ;   6          end loop;   7  end;   8  / PL/SQL procedure successfully completed. SQL> SQL> drop table t; Table dropped. SQL> SQL> SQL> --