Oracle Commit用法
2010-05-25 09:46
253 查看
第一个bug fix 用到 Oracle的Update语句
update Table1 set Web=-1 where ProgID=N‘123’
CodeReview 时
Do we need a COMMIT; in the Oracle version?
上网查了一下Oracle COMMIT用法
Use the
Until you commit a transaction:
You can see any changes you have made during the transaction by querying the modified tables, but other users cannot see the changes. After you commit the transaction, the changes are visible to other users' statements that execute after the commit.
You can roll back (undo) any changes made during the transaction with the
Oracle Database issues an implicit
You can also use this statement to
Commit an in-doubt distributed transaction manually
Terminate a read-only transaction begun by a
Oracle recommends that you explicitly end every transaction in your application programs with a
A normal exit from most Oracle utilities and tools causes the current transaction to be committed. A normal exit from an Oracle precompiler program does not commit the transaction and relies on Oracle Database to roll back the current transaction.
update Table1 set Web=-1 where ProgID=N‘123’
CodeReview 时
Do we need a COMMIT; in the Oracle version?
上网查了一下Oracle COMMIT用法
COMMIT
PurposeUse the
COMMITstatement to end your current transaction and make permanent all changes performed in the transaction. A transaction is a sequence of SQL statements that Oracle Database treats as a single unit. This statement also erases all savepoints in the transaction and releases transaction locks.
Until you commit a transaction:
You can see any changes you have made during the transaction by querying the modified tables, but other users cannot see the changes. After you commit the transaction, the changes are visible to other users' statements that execute after the commit.
You can roll back (undo) any changes made during the transaction with the
ROLLBACKstatement (see ROLLBACK.
Oracle Database issues an implicit
COMMITbefore and after any data definition language (DDL) statement.
You can also use this statement to
Commit an in-doubt distributed transaction manually
Terminate a read-only transaction begun by a
SET
TRANSACTIONstatement
Oracle recommends that you explicitly end every transaction in your application programs with a
COMMITor
ROLLBACKstatement, including the last transaction, before disconnecting from Oracle Database. If you do not explicitly commit the transaction and the program terminates abnormally, then the last uncommitted transaction is automatically rolled back.
A normal exit from most Oracle utilities and tools causes the current transaction to be committed. A normal exit from an Oracle precompiler program does not commit the transaction and relies on Oracle Database to roll back the current transaction.
相关文章推荐
- Oracle commit详细用法
- Oracle commit详细用法
- Oracle Form 的POST-FORMS-COMMIT触发器用法
- ORACLE 绑定变量用法总结
- Oracle左连接、右连接、全外连接以及(+)号用法
- Oracle trunc()函数的用法
- sql语句中select top n与oracle的rownum与mysql的limit用法
- 【oracle sql】 最基本的connect by的用法
- oracle case then用法
- Oracle HINT的常见用法
- oracle中rownum用法的总结(转)
- Oracle中start with...connect by prior子句用法
- Oracle %ROWTYPE 用法
- Oracle CASE WHEN 用法介绍
- Oracle 中的 ROW_NUMBER() OVER() 分析函数的用法
- Oracle dbms_job package 用法小结
- Oracle中Delete和Commit操作的流程分析
- oracle中的exists 和not exists、in的 用法详解
- 体验oracle中的con.commit()
- Oracle中Lpad函数和Rpad函数的用法