Skip to content

Commit 0c8b985

Browse files
authored
Create access-mode-significance.sql
1 parent dc2c799 commit 0c8b985

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
SET TRANSACTION READ ONLY;
2+
3+
START TRANSACTION;
4+
SELECT * FROM DEPARTMENT WHERE id=5 FOR UPDATE;
5+
6+
SET TRANSACTION READ ONLY;
7+
START TRANSACTION;
8+
SELECT * FROM DEPARTMENT WHERE id=5 FOR SHARE;

0 commit comments

Comments
 (0)