Home > Database > Mysql Tutorial > Oracle 事务的开始与结束

Oracle 事务的开始与结束

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-07 16:50:01
Original
1065 people have browsed it

事务完成之后,如果不显示地提交或回滚事务,都被认为是不好的编程习惯,因此确保在每个事务后面都要执行COMMIT或ROLLBACK语句。

事务是用来分割数据库活动的逻辑工作单元,事务即有起点,,也有终点;

当下列事件之一发生时,事务就开始了:

  • 连接到数据库上,并执行了第一天 DML 语句;
  • 当前一个事务结束后,又输入了另外一条 DML 语句;
  • 当下列事件之一发生时,事务就结束了:

    注意:事务完成之后,如果不显示地提交或回滚事务,都被认为是不好的编程习惯,因此确保在每个事务后面都要执行COMMIT或ROLLBACK语句。

    Oracle教程:实例故障恢复

    Linux-6-64下安装Oracle 12C笔记

    在CentOS 6.4下安装Oracle 11gR2(x64)

    Oracle 11gR2 在VMWare虚拟机中安装步骤

    Debian 下 安装 Oracle 11g XE R2

    本文永久更新链接地址:

    linux

    Related labels:
    Statement of this Website
    The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template