다음 트랜잭션 실행 결과로 올바른 것은?
create table t1 (no number);
insert into t1 values (1);
insert into t1 values (2);
savepoint sv1;
update t1 set no=4 where no=1;
savepoint sv1;
delete from t1 where no >= 2;
rollback to sv1;
insert into t1 values(3);
commit;
select max(no) from t1;정답 4번
ROLLBACK TO sv1에 의해 DELETE 작업만 취소되고 이전의 UPDATE(1->4)는 유지된다. 이후 3이 입력되어 데이터는 (4, 2, 3)이 되므로 MAX 값은 4이다.
콘텐츠 정보
- 자료 유형
- 편집복원
- 검수 상태
- 내용 검수 완료
- 해설 작성·검수
- 정처LAB 편집 기준
- 최종 검수
- 2026-08-21