今天在学习JDBC的时候看到了关于MySql的事务的隔离级别的问题,感觉内容挺高级的,所以记录一篇文章,以备后面使用。
数据库隔离级别有四种,应用《高性能mysql》一书中的说明:
然后说说修改事务隔离级别的方法:
1.全局修改,修改mysql.ini配置文件,在最后加上
1 #可选参数有:READ-UNCOMMITTED, READ-CO...
分类:
数据库 时间:
2014-05-04 18:56:12
阅读次数:
450
系统背景
电脑型号:Thinkpad X230i
操作系统:win 8.1 中文版 + Ubuntu 13.10 双系统运行
问题描述
在Ubuntu系统下无法打开Win分区,提示以下信息
Unable to Access "WINDOWS"Error mounting /dev/sda3 at /media/dany/Data: Command-line `mount -t "nt...
分类:
数据库 时间:
2014-05-04 17:53:36
阅读次数:
681
??
SQL Server online consultants came across an interesting scenario where one of our client was unable to restore a native SQL Server backup successfully performed from one instance running on M...
分类:
数据库 时间:
2014-05-04 17:42:50
阅读次数:
394
今天使用数据库时(SQLite)出现了一个错误让我头疼了好半天,最后发现是自己粗心引起的,在这里把这个错误记下来,以便以后查阅以下是当时报的错误:
错误原因:是因为自己从数据库建立连接后没有将游标向下移位(使用reader.Read()方法)就开始读数据引起的,此时游标中是没有数据的,切记...
分类:
数据库 时间:
2014-05-04 12:25:13
阅读次数:
308
windows
-->java-->compiler-->building中的ouput folder 中的第一个scrub output folders
when cleaning projets.前面那个勾去掉。
分类:
系统相关 时间:
2014-05-04 12:12:34
阅读次数:
621
Problem
Description在一个国家仅有1分,2分,3分硬币,将钱N兑换成硬币有很多种兑法。请你编程序计算出共有多少种兑法。Input每行只有一个正整数N,N小于32768。Output对应每个输入,输出兑换方法数。Sample
Input293412553Sample Output71...
分类:
其他好文 时间:
2014-05-04 11:51:37
阅读次数:
248
共享锁S,加锁后,其它事务只能叠加S;独占锁X,加锁后具有排它性,其它事务加不了锁。①
ReadUnCommitted不加锁,也不接受独占锁,在这个事务隔离级别下可以读到脏数据(未被提交的过期数据或读取后被回滚),当然也包括不可重复读和幻像数据。②
ReadCommitted读前加共享锁,读完就释放...
分类:
其他好文 时间:
2014-05-04 10:09:39
阅读次数:
250
C代码实现如下: 1 #include 2 #include 3 4 int** DP(int
num, int Weight, int*w, int *v); 5 void output(int *c, int *w, int weight, int
**ptr, int num)...
分类:
其他好文 时间:
2014-05-04 10:09:07
阅读次数:
269
测试中出错出错一# ./helloworld
-qwsQWSServerSocket::init: Function not implementedQWSServerSocket: unable to
create socket.QWSServerPrivate::initServer: serve...
分类:
其他好文 时间:
2014-05-04 09:56:40
阅读次数:
322
string path = textBox1.Text; FileStream fs =
File.OpenRead(path); byte[] bytes = new byte[fs.Length]; fs.Read(bytes, ...
分类:
其他好文 时间:
2014-05-04 09:55:49
阅读次数:
402