0

Does an isolation level still apply until a different one is specified or does it only apply to the next transaction?

For example:

SET TRANSACTION READ WRITE
 ISOLTATION LEVEL READ UNCOMMITTED;
 SELECT foo FROM aTable;
 SELECT bar FROM aTable;

When reading the column bar is the isolation level back to the default serializable?

To make sure I'm not confused, when specifying the isolation level it is dbms wide right?

Celeritas
  • 14,489
  • 36
  • 113
  • 194
  • It's for the Session lifetime – Chandu Nov 13 '12 at 01:47
  • @Chandu is session lifetime for as long as the user/program is connected to the database? – Celeritas Nov 13 '12 at 01:50
  • Session life time is completely controlled by the component that is creating/handling the session. Basically either when a transaction is started to when it is committed or when a connection isopened till its closed for implicit transactions – Chandu Nov 13 '12 at 01:54

0 Answers0