Alibabacloud.com offers a wide variety of articles about commit rollback and savepoint, easily find your commit rollback and savepoint information here online.
What is savepoint?
Use
The SAVEPOINT statement to identify a point in a transaction to which you can
Later roll back.
For example:
SQL> SELECT * FROM SCOTT. DEPT;
DEPTNODNAME LOC---------------------------------10ACCOUNTING NEW YORK20 RESEARCH
Oracle 11g
Create or replace procedure skeletonISBEGINBeginInsert into a values (10 );BeginInsert into a values (11 );End;End;Begin-- Savepoint ps;Insert into a values (20 );Commit;End;BeginInsert into a values (30 );End;Insert into a values (40 );--
Start transaction, commit and rollback syntaxStart Transaction | Begin [Work]commit [Work] [and [No] chain] [[No] release]rollback [work] [and [No] chain] [[No] release]set autocommit = { 0 | The 1}start transaction or BEGIN statement can begin a
The new JDBC3.0 save Point Interface provides additional transaction control. Most modern DBMS in their environment, such as Oracle's Pl/sql, support SavePoint.
Defines a logical rollback point in a transaction when a save point is set. If an error
BEGIN TRANSACTIONMarks the starting point for an explicit local transaction. BEGIN TRANSACTION The @ @TRANCOUNT by 1 increments.BEGIN TRANSACTION represents a point where data referenced by a connection is logically and physically consistent at that
Before looking at this article, make sure that you understand the concept of Oracle transactions and locks as it is, but do not understand, refer to the consistency and atomicity of database transactions and Oracle TM and TX Locks1. Commit a
The JDBC API provides the Setautocommit () method through which we can disable autocommit database connections. Autocommit should be disabled because only such transactions are not automatically committed unless the connection's commit () method is
Here I will only briefly introduce these two commands, but they are used in the process of use. So I will mention them here. If you are interested in this, you can search for more introductions. Please share them ~~
A Database Transaction starts
triggers cannot invoke or indirectly invoke a DCL statement such as Commit,rollbackDDL statements and Commit,rollback statements cannot be run in triggersDDL statements: DDL statement terms define and manage objects in the database, such as
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.