阅读背景:

使用TransactionScope与MySQL和读锁

来源:互联网 

I have the following situation:

我有以下情况:

If have a MySQL db with a InnoDB table which I use to store unique numbers. I start a transaction, read the value (eg. 1000471), store this value in another table and update the incremented value (100472). Now I want to avoid that somebody else even reads the value while my transaction is running.If




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: