일단 해보는 코딩/Oracle SQL

[오라클/SQL] Transaction - COMMIT/ROLLBACK (예제)

eun_zoey2 2022. 6. 9. 20:14
728x90

Transaction 

select department_id, department_name from departments
where rownum <=5;

insert into departments (department_id, department_name) values ('1000', 'IT_EDU');  -- 레코드추가

select department_id, department_name from departments
where department_id = 1000;

다른 콘솔에서 추가한 레코드를 볼 수 없다.

commit ;

 

ROLLBACK;