Skip to content

Commit 4778b1e

Browse files
authored
Update access-mode-significance.sql
1 parent 05e7794 commit 4778b1e

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed
Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,16 @@
1-
SET TRANSACTION READ ONLY;
1+
SET TRANSACTION
2+
READ ONLY;
23

34
START TRANSACTION;
4-
SELECT * FROM DEPARTMENT WHERE id=5 FOR UPDATE;
5+
SELECT *
6+
FROM DEPARTMENT
7+
WHERE id=5
8+
FOR UPDATE;
59

6-
SET TRANSACTION READ ONLY;
10+
SET TRANSACTION
11+
READ ONLY;
712
START TRANSACTION;
8-
SELECT * FROM DEPARTMENT WHERE id=5 FOR SHARE;
13+
SELECT *
14+
FROM DEPARTMENT
15+
WHERE id=5
16+
FOR SHARE;

0 commit comments

Comments
 (0)