mysql Innodb 事务使用
2014-03-07 17:49
253 查看
https://dev.mysql.com/doc/refman/5.5/en/innodb-locking-reads.html
If you query data and then insert or update related data within the same transaction, the regular
does not give enough protection. Other transactions can update or delete the same rows you just queried.
two types of locking
reads that offer extra safety:
1)
ok Innodb transaction select lock Read 解决~~。
If you query data and then insert or update related data within the same transaction, the regular
SELECTstatement
does not give enough protection. Other transactions can update or delete the same rows you just queried.
InnoDBsupports
two types of locking
reads that offer extra safety:
1)
SELECT ... LOCK IN SHARE MODE
2)SELECT ... FOR UPDATE
ok Innodb transaction select lock Read 解决~~。
相关文章推荐
- 存储过程中使用事务
- Spring1.x使用TransactionProxyFactoryBean创建事务代理
- WCF 使用 WSAtomicTransaction11 分布式事务 Oracle
- 被事务代理的spring service 使用注解方式发布Dubbo服务
- 在SQLite中使用事务
- 第九章 使用事务
- (ZT)使用JOTM实现分布式事务管理(多数据源)
- SQL Server跨数据库访问及分布式事务的使用及配置
- SQL中存储过程中使用事务,并且加入异常处理机制.
- 事务回滚的使用
- ADO.NET中使用事务进行数据库读写的办法
- 在spring中使用声明型事务
- 存储过程中使用事务
- 【转载】使用事务和SqlBulkCopy导入大批量数据
- SSH中事务配置详解(使用拦截器)
- 数据库事务管理:掺杂使用entityDao和jdbcTemplate时的问题
- 使用Atomikos Transactions Essentials实现多数据源JTA分布式事务--转载
- 在ASP中使用事务控制
- c#事务的使用、示例及注意事项