可重复读从事务开始就维护数据库的状态。如果您在会话1中检索到一个值,则在会话2中更新该值,然后在会话1中再次检索该值将返回相同的结果。读取是可重复的。session1> BEGIN;session1> SELECT firstname FROM names WHERE id = 7;Aaronsession2> BEGIN;session2> SELECT firstname FROM names WHERE id = 7;Aaronsession2> UPDATE names SET firstname = 'Bob' WHERE id = 7;session2> SELECT firstname FROM names WHERE id = 7;Bobsession2> COMMIT;session1> SELECT firstname FROM names WHERE id = 7;Aaron阅读已提交在事务的上下文中,您将始终检索最近提交的值。如果您在会话1中检索到一个值,在会话2中对其进行更新,然后再次在会话1中对其进行检索,则将获得在会话2中修改的值。它读取最后提交的行。session1> BEGIN;session1> SELECT firstname FROM names WHERE id = 7;Aaronsession2> BEGIN;session2> SELECT firstname FROM names WHERE id = 7;Aaronsession2> UPDATE names SET firstname = 'Bob' WHERE id = 7;session2> SELECT firstname FROM names WHERE id = 7;Bobsession2> COMMIT;session1> SELECT firstname FROM names WHERE id = 7;Bob说得通?