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

17 lines
261 B
SQL

SET TRANSACTION ISOLATION LEVEL SERIALIZABLE;
BEGIN TRANSACTION
SELECT
SUM(Cena)
FROM
Bilety
-- STEP 2 RUN ABOVE
INSERT INTO
Wycieczki
VALUES
('Honolulu', 2000)
-- STEP 4 RUN BETWEEN 2 AND 4
COMMIT TRANSACTION