语法:
savepoint 保存点的名称;
rollback to 保存点的名称;
--savepoint--
insert into users values(user_seq.nextval,'anan','anan','an','1');
savepoint a;
insert into users values(user_seq.nextval,'demon','demon','dem','1');
insert into users values(user_seq.nextval,'kevin','kevin','kev','1');
--rollback to --
rollback to a;
运行savepoint a后,创建保存点
|
|
|
运行rollback to a,创建回滚点
在savepoint之后的所有运行的程序,只要运行rollback to后全部撤销