例如两个进程a,b
1。
a,select一个条记录
b,select同一个条记录
a.update
b.update
以上问题是b,update后覆盖了a的update
解决方法
a. select…… for update
b.select…… for update
这个就防止了当b的update时,b的select是a没有update前的数据,从而b,update后覆盖了a的update
例如两个进程a,b
1。
a,select一个条记录
b,select同一个条记录
a.update
b.update
以上问题是b,update后覆盖了a的update
解决方法
a. select…… for update
b.select…… for update
这个就防止了当b的update时,b的select是a没有update前的数据,从而b,update后覆盖了a的update