DB2 SQL isolation-clause

| No TrackBacks
>>-WITH--+-CS------------------+-------------------------------><
               +-UR------------------+
               +-RR--+-------------+-+
                |        '-lock-clause-' |
                '-RS--+-------------+-'
                         '-lock-clause-'

lock-clause

|--USE AND KEEP--+-EXCLUSIVE-+--LOCKS---------------------------|
                             +-UPDATE----+
                              '-SHARE-----'

CS - Cursor stability
UR - Uncommitted read
RR - Repeatable read
RR lock-clause
Repeatable read, using and keeping the type of lock that is specified in lock-clause on all accessed pages and rows
RS - Read stability
RS lock-clause
Read stability, using and keeping the type of lock that is specified in lock-clause on all accessed pages and rows


lock-clause
Specifies the type of lock.

USE AND KEEP EXCLUSIVE LOCKS
USE AND KEEP UPDATE LOCKS
USE AND KEEP SHARE LOCKS
Specifies that DB2® is to acquire and hold X, U, or S locks, respectively.

No TrackBacks

TrackBack URL: http://server.everfine.com.tw/blog/mt-tb.cgi/237

February 2012

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29      

Archives

Powered by Movable Type 4.34-en

About this Entry

This page contains a single entry by philipz published on March 13, 2009 3:20 PM.

醫院資訊系統改善病人安全的機制 was the previous entry in this blog.

Opportunistic Locking is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.