用shell和CMD分别开启两个事务,在事务一打算插入数据前,事务二先插入了数据并提交,事务一会报错。 关于锁的问题:http://hedengcheng.com/?p=771,http://hedengcheng.com/?p=844