Mega Code Archive

 
Categories / Oracle PLSQL / Table
 

Transaction Rollback and commit

SQL> SQL> -- rollback and commit SQL> SQL> create table t ( x number(1) ); Table created. SQL> SQL> SQL> insert into t values ( 1 ); 1 row created. SQL> insert into t values ( 2 ); 1 row created. SQL> SQL> rollback; Rollback complete. SQL> select * from t; no rows selected SQL> insert into t values ( 1 ); 1 row created. SQL> insert into t values ( 2 ); 1 row created. SQL> commit; Commit complete. SQL> select * from t;          X ----------          1          2 SQL> SQL> drop table t; Table dropped. SQL> SQL> SQL>