本文共 1192 字,大约阅读时间需要 3 分钟。
?????????????????????????????????????????????A?B????????????????Repeatable Read?RR??
user ?????????????begin ???????????select * from user ?????????????update user set sex='?' where id=3???????????select * from user ??????????????user ????????????????????????A?????????B???????????????????????????????????????????????????????????????????????????????????????????????????
???????????????????????A???? begin ???????????????????????????SQL????????A???? select * from user ?????????????????????????? begin ?????????SQL??????????????????????
????????????????????????????????????????????????????????????????????????????????
??????A???? select ???B????????????????????????????????A?????????????????????????????? select ????
???????????? begin ?????????SQL??????????????????????A???? begin ????? select ????????????B???????????A???????????A????????????
????????????????????????? begin ????????
start transaction with consistent snapshot;
????????????????????????B???????A???????????
???????????????????????????????????????SQL?????????????????????????????????????????????????????????????
转载地址:http://zhdfk.baihongyu.com/