Nonstop Database, HiRDB Version 9 UAP Development Guide

[Contents][Index][Back][Next]

3.4.9 Lock sequence based on SQL statement and index types

Organization of this subsection
(1) Lock sequence of data manipulation SQL statements for index key values and data page rows
(2) Lock sequence of data manipulation SQL statements when non-locking of index key values is used
(3) Order of locking uncommitted data to be deleted

(1) Lock sequence of data manipulation SQL statements for index key values and data page rows

(a) INSERT statement

[Figure]

(b) DELETE statement that does not use a cursor or UPDATE statement to search for data matching a condition

[Figure]

(c) DELETE statement that uses a cursor

[Figure]

(d) UPDATE statement that uses a cursor

[Figure]

(e) SELECT or FETCH statement

[Figure]

[Figure]

[Figure]

(2) Lock sequence of data manipulation SQL statements when non-locking of index key values is used

(a) INSERT statement

[Figure]

(b) DELETE statement that does not use a cursor or UPDATE statement to search for data matching a condition

[Figure]

(c) DELETE statement that uses a cursor

[Figure]

(d) UPDATE statement that uses a cursor

[Figure]

(e) SELECT or FETCH statement

[Figure]

[Figure]

(3) Order of locking uncommitted data to be deleted

(a) Searching for the data that satisfies a condition by using the DELETE or UPDATE statement

[Figure]

(b) For SELECT or FETCH statement

[Figure]

[Figure]