RDBMS事务
事务用于要执行一系列的sql语句,在这些sql语句中,只要有一个出现问题或者出现错误,结果都会导致数据错误,所以必须保证这一系列的操作要么是全都正常执行,要么就全都不执行,保证了一系列操作的完整性和准确性。而事务就是来完成这个需求的。
使用sql语句执行事务:
1 | begin; -- 开始事务 或: |
事务特性:
- 原子性
- 一致性
- 隔离性
- 持久性
Original author: John Doe & wooyee.Landucheg
Original link: http://yoursite.com/2019/08/30/RDBMS事务/
Copyright Notice: Please indicate the source of the reprint (must retain the author's signature and link)