sql-deadlock-examples/read uncomitted/session 2.sql
2023-12-11 23:43:31 +01:00

17 lines
293 B
SQL

SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED;
BEGIN TRANSACTION
UPDATE Bilety
SET cena = 1
WHERE
kraj = 'Ateny'
-- STEP 2 - RUN ABOVE
UPDATE Wycieczki
SET cena = 1
WHERE
kraj = 'Bangkok'
-- STEP 4 RUN BETWEEN 2 AND 4
COMMIT TRANSACTION