mysql隔离级别设置
来源:互联网 发布:控制电脑使用时间软件 编辑:程序博客网 时间:2024/06/15 15:36
原文:https://dev.mysql.com/doc/refman/5.0/en/set-transaction.html
SET [GLOBAL | SESSION] TRANSACTION ISOLATION LEVEL { REPEATABLE READ | READ COMMITTED | READ UNCOMMITTED | SERIALIZABLE }
Scope of the Isolation Level
You can set the isolation level globally, for the current session, or for the next transaction:
With the
GLOBAL
keyword, the statement sets the default transaction level globally for all subsequent sessions. Existing sessions are unaffected.With the
SESSION
keyword, the statement sets the default transaction level for all subsequent transactions performed within the current session.Without any
SESSION
orGLOBAL
keyword, the statement sets the isolation level for the next (not started) transaction performed within the current session.
A change to the global default isolation level requires the SUPER
privilege. Any session is free to change its session isolation level (even in the middle of a transaction), or the isolation level for its next transaction.
除了上面的方法,也可以通过tx_isolation变量来改变隔离级别;
SELECT @@GLOBAL.tx_isolation, @@tx_isolation;SET GLOBAL tx_isolation='REPEATABLE-READ';SET SESSION tx_isolation='SERIALIZABLE';
另外推荐播客 http://mysqllover.com/?p=57
- mysql隔离级别设置
- 设置MySQL事务隔离级别
- 设置MySQL事务隔离级别
- MySQL设置事物隔离级别
- mysql事物隔离级别设置
- MySQL-事务隔离级别设置
- MySQL-事务隔离级别设置
- mysql事务隔离级别设置与查看
- MySQL SET TRANSACTION 设置事务隔离级别
- 查询和设置mysql事务隔离级别
- mysql设置事务的隔离级别
- MySQL数据库设置事务隔离级别
- DB2隔离级别设置
- spring隔离级别设置
- Mysql 隔离级别
- mysql事务隔离级别
- Mysql 事务隔离级别
- MySQL隔离级别
- UITabBarController ---- 标签视图控制器
- Virtual machine 'win7' has terminated unexpectedly during startup解决
- HDU 1010 Tempter of the Bone
- ibtatis 的写法map
- 用Unity3D和VuforiaSDK简单做AR应用(实战)
- mysql隔离级别设置
- JAVA的RSA加密算法工具类
- 网络编程时为什么需要htons()、ntohl()、ntohs()、htons() 函数?
- spoon学习1
- memcached server LRU 深入分析
- DialogFragment里面设置setStyle()方法,动画效果失效
- HDU 1015 Safecracker
- C++引用参数和引用返回值
- C++ 使用delete删除指针(2