开发者社区> 问答> 正文

What are transactions and their controls in SQL?

What are transactions and their controls....

展开
收起
1780169608831412 2021-10-16 14:24:18 445 0
1 条回答
写回答
取消 提交回答
  • 网络规划设计师、敏捷专家、CISP、ITSS服务经理、ACA全科目、ACP4项、ACE、CBP、CDSP、CZTP等。拥有 PRINCE2 Foundation/Practitioner、CCSK、ITIL、ISO27001、PMP等多项国际认证。 专利5+、期刊10+、知识产权师。核心期刊审稿人。

    A transaction can be defined as the sequence task that is performed on databases in a logical manner to gain certain results. Operations like Creating, updating, deleting records performed in the database come from transactions.

    In simple words, we can say that a transaction means a group of SQL queries executed on database records.

    There are 4 transaction controls such as

    COMMIT: It is used to save all changes made through the transaction.
    ROLLBACK: It is used to roll back the transaction. All changes made by the transaction are reverted back and the database remains as before.
    SET TRANSACTION: Set the name of the transaction.
    SAVEPOINT: It is used to set the point where the transaction is to be rolled back.
    
    2021-10-16 15:18:17
    赞同 1 展开评论 打赏
问答分类:
SQL
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Spark SQL:Another 16x faster 立即下载
Just in Time Analytics and the Need for Autonomous Database Administration 立即下载
Major advancements in Apache Hive towards full support of SQL compliance 立即下载