Skip to content

Commit b8afacf

Browse files
authored
Update select-for-share.sql
1 parent 734338e commit b8afacf

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

sql-queries-11/lock-single-row-mysql/select-for-share.sql

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,6 @@ FOR UPDATE;
2121
//First Session
2222
COMMIT;
2323

24-
//Second Session
25-
SELECT *
26-
FROM DEPARTMENT
27-
WHERE id=5
28-
FOR UPDATE;
29-
3024
//Second Session
3125
START TRANSACTION;
3226
UPDATE DEPARTMENT

0 commit comments

Comments
 (0)