We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05e7794 commit 4778b1eCopy full SHA for 4778b1e
sql-queries-11/lock-single-row-mysql/access-mode-significance.sql
@@ -1,8 +1,16 @@
1
-SET TRANSACTION READ ONLY;
+SET TRANSACTION
2
+READ ONLY;
3
4
START TRANSACTION;
-SELECT * FROM DEPARTMENT WHERE id=5 FOR UPDATE;
5
+SELECT *
6
+FROM DEPARTMENT
7
+WHERE id=5
8
+FOR UPDATE;
9
10
11
12
-SELECT * FROM DEPARTMENT WHERE id=5 FOR SHARE;
13
14
15
16
+FOR SHARE;
0 commit comments