Sqlj Set-Transaction-Clause - IBM DB2 Manual

Table of Contents

Advertisement

|
|

SQLJ SET-TRANSACTION-clause

SET TRANSACTION ISOLATION LEVEL
290
Application Programming Guide and Reference for Java
Table 80. Valid SQL statements in an SQLJ statement clause (continued)
SET CURRENT PRECISION
SET CURRENT REFRESH AGE
SET CURRENT ROUTINE VERSION
SET CURRENT RULES
SET CURRENT SQLID
SET PATH
TRUNCATE
UPDATE
Usage notes
v SQLJ supports both positioned and searched DELETE and UPDATE operations.
v For a FETCH statement, a positioned DELETE statement, or a positioned
UPDATE statement, you must use an iterator to refer to rows in a result table.
Related tasks
"Setting the isolation level for an SQLJ transaction" on page 153
Related reference
"SQLJ executable-clause" on page 287
"SQLJ SET-TRANSACTION-clause"
"Statements" (DB2 SQL Reference)
The SET TRANSACTION clause sets the isolation level for the current unit of
work.
Syntax
READ COMMITTED
READ UNCOMMITTED
REPEATABLE READ
SERIALIZABLE
Description
ISOLATION LEVEL
Specifies one of the following isolation levels:
READ COMMITTED
Specifies that the current DB2 isolation level is cursor stability.
READ UNCOMMITTED
Specifies that the current DB2 isolation level is uncommitted read.
REPEATABLE READ
Specifies that the current DB2 isolation level is read stability.
SERIALIZABLE
Specifies that the current DB2 isolation level is repeatable read.
Usage notes
You can execute SET TRANSACTION only at the beginning of a transaction.
Related tasks
"Setting the isolation level for an SQLJ transaction" on page 153

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents