Comments (1)
PHANTOM READ
저상황에서는 마지막에도 return이 2가 됩니다.
insert한 행에 대해서 update를 치는 사황에서 return 3이 됩니다
이게 정답입니다.
START TRANSACTION; -- transaction id : 1
SELECT * FROM Member; -- 0건 조회
START TRANSACTION; -- transaction id : 2
INSERT INTO MEMBER VALUES(1,'joont',28);
COMMIT;
SELECT * FROM Member; -- 여전히 0건 조회
UPDATE Member SET name = 'zion.t' WHERE id = 1; -- 1 row(s) affected
SELECT * FROM Member; -- 1건 조회
COMMIT;
from blog-comments.
Related Issues (20)
- articles/2018-04/Redirect-Forward HOT 1
- articles/2019-01/ElasticSearch-Configuration HOT 1
- articles/2018-01/OCP HOT 1
- articles/2019-03/ElasticSearch-Analysis HOT 1
- articles/2019-02/Spring-request-lifecycle-part-1 HOT 1
- articles/2018-06/Java-transient HOT 3
- articles/2016-12/Install-Jekyll
- articles/2019-08/Intellij-Setting-Sync HOT 5
- articles/2018-03/How-get-devinfo HOT 1
- articles/2019-07/Alfred-iterm HOT 2
- articles/2019-11/Github-suggestion HOT 2
- articles/2019-11/editorconfig
- articles/2020-01/GSLB HOT 1
- articles/2018-05/Database-Shard HOT 3
- articles/2018-04/why-close-to-domain HOT 2
- articles/2019-02/RabbitMQ HOT 2
- articles/2020-05/Base64-Encode HOT 1
- articles/2020-05/RestTemplate
- articles/2018-08/Algorithm-RedblackTree HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog-comments.