Home > Database > Mysql Tutorial > 事务的隔离级别及mysql中相关的设置_MySQL

事务的隔离级别及mysql中相关的设置_MySQL

WBOY
Release: 2016-06-01 13:31:01
Original
1124 people have browsed it

bitsCN.com

事务的隔离级别及mysql中相关的设置

 

进入mysql管理界面后,可执行如下sql

 

[sql] select @@tx_isolation;    //查看隔离级别  set transaction isolation level read uncommitted;  //设置读未提交级别  start transaction;  //打开事务  rollback;   //回滚  commit; //提交  set transaction isolation level read committed;  //设置读提交级别  set transaction isolation level repeatable read;  //设置可重复读(缺省),保证每次读的结果是一样的  set transaction isolation level serializable; //设置成序列化  (类似于oracle的锁)
Copy after login

 

 

下面是事务的隔离级别及事务的特性

事务的隔离级别及mysql中相关的设置_MySQL
事务的隔离级别及mysql中相关的设置_MySQL
事务的隔离级别及mysql中相关的设置_MySQL
事务的隔离级别及mysql中相关的设置_MySQL

bitsCN.com
Related labels:
source:php.cn
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