transaction
READ UNCOMMITTED
PostgreSQL implements this request as read committed, not dirty reads. Other engines may differ. Target: PostgreSQL 17. Example is a connection-specific schedule, not a single executable script.
Formal Syntax & Structure
sql syntaxsql
BEGIN ISOLATION LEVEL READ UNCOMMITTEDWorking Example
Example Snippetsql
-- Fresh fixture: CREATE TABLE t(id INT PRIMARY KEY, n INT NOT NULL);-- INSERT INTO t VALUES (1,10),(2,10);-- Use two independent connections A and B; setup committed first.-- A: BEGIN;-- A: UPDATE t SET n=20 WHERE id=1;-- B: BEGIN ISOLATION LEVEL READ UNCOMMITTED;-- B: SELECT n FROM t WHERE id=1;-- Roll back any open transactions after observation.