html tool

2015年6月18日星期四

mysql锁表测试--模拟网络问题

add:http://www.cnblogs.com/fuyunbiyi/archive/2012/04/02/2430304.html
问题:模拟代码级别的事务回滚
使用对修改表数据库加锁完成,手动加锁数据库
lock table xxx要求 read (write);/*xxx 为表名称*/

-- lock table jsorder.historyrefund write;
-- unlock tables;

没有评论:

发表评论