Last active
December 19, 2015 12:19
-
-
Save tk0miya/5954387 to your computer and use it in GitHub Desktop.
MySQL で INSERT 時にロックされてしまう件に関するメモ。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Transaction 1. | |
| BEGIN; | |
| INSERT INTO users values(1, "tk0miya"); | |
| // Transaction 2. | |
| BEGIN; | |
| INSERT INTO users values(1, "suzuki"); | |
| // Transaction 1. が commit or rollback されるまでブロックされる. (なぜ?) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment