码迷,mamicode.com
首页 >  
搜索关键字:dead transaction    ( 2784个结果
关系型数据库事务处理ACID
ACID,指数据库事务正确执行的四个基本要素的缩写。包含:原子性(Atomicity)、一致性(Consistency)、隔离性 (Isolation)、持久性(Durability)。一个支持事务(Transaction)的数据库系统,必需要具有这四种特性,否则在事务过程 (Transaction...
分类:数据库   时间:2014-10-10 00:09:57    阅读次数:309
MYSQL SQL Server 事务
开始: start transaction; # 一定要有这个 ‘;’ 号。注意: MYSQL 用的是快照隔离、就是说一个连接在修改的时候别的连接还是可以查询的。 例子: create table T1(X int); insert into T1(X) values(100)...
分类:数据库   时间:2014-10-09 19:16:37    阅读次数:162
lua学习笔记12:协程详解和举例
一、coroutine.create创建协程 参数是协程的主函数,返回一个thread对象 co = coroutine.create(function() print("coroutine execute!") end) 二 协程状态 协程有4种状态:挂起(suspended)、运行(running)、死亡(dead)和正常(normal) coroutine.status(co)...
分类:其他好文   时间:2014-10-08 17:13:35    阅读次数:290
TPCC-MYSQL 应用测试
TPCC-MySQL 基于TPCC协议的MySQL 实现TPCC简介:TPC-C is an on-line transaction processing benchmark,TPC-C simulates a complete computing environment where a popul...
分类:数据库   时间:2014-10-06 18:37:10    阅读次数:399
SQL_事务的并发控制
--多个用户对同一个数据操作时,一个用户的行为结果可能导致另一个用户使用的数据无效,通过事务的并发控制可以确保--同时发生的行为与数据的有效性不发生冲突begin transaction select * from teachers with(holdlock) --数据库加锁 wait...
分类:数据库   时间:2014-10-06 02:32:49    阅读次数:213
SQL_新建一个事务
begin transaction insert into teachers (Name,Age,Greade) values('HELLO',50,'高三二班') insert into Students (ClassName,Name,Age) values('高三六班','张永和'...
分类:数据库   时间:2014-10-06 02:28:09    阅读次数:202
SQL_保存事务
begin transaction insert into teachers (Name,Age,Greade) values('test1',40,'高三三班') insert into Students (ClassName,Name,Age) values('高三六班','小花',...
分类:数据库   时间:2014-10-06 01:35:19    阅读次数:231
SQL_事务回滚
begin try begin transaction insert into teachers (Name,Age,Greade) values('test1',40,'高三三班') insert into Students (ClassName,chinese,...
分类:数据库   时间:2014-10-06 01:19:59    阅读次数:191
Hibernate中使用HQLQuery查询全部数据和部分数据
package com.lc.view; import java.util.Iterator; import java.util.List; import org.hibernate.Session; import org.hibernate.Transaction; import com.lc.domain.Student; import com.lc.utils.HibernateUti...
分类:系统相关   时间:2014-10-05 19:07:48    阅读次数:262
Spring transaction事务之roll back回滚
转自:http://blog.csdn.net/lovejavaydj/article/details/7635848试验方法: 写一个单元测试,调用一个service层方法(发生对数据库进行写操作的方法--insert、update、delete)即可.试验过程: 定义一个service方法如下:...
分类:编程语言   时间:2014-10-04 14:44:46    阅读次数:209
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!