- 最后登录
- 2012-8-24
- 在线时间
- 82 小时
- 威望
- 316
- 金钱
- 2458
- 注册时间
- 2011-12-16
- 阅读权限
- 60
- 帖子
- 136
- 精华
- 2
- 积分
- 316
- UID
- 107
|
1#
发表于 2012-3-6 14:43:39
|
查看: 5986 |
回复: 6
Share Row Exclusive Table Locks (SRX)A share row exclusive table lock (also sometimes called a share-subexclusive table lock, SSX) is more restrictive than a share table lock. A share row exclusive table lock is acquired for a table as follows:
LOCK TABLE table IN SHARE ROW EXCLUSIVE MODE; Permitted Operations: Only one transaction at a time can acquire a share row exclusive table lock on a given table. A share row exclusive table lock held by a transaction allows other transactions to query or lock specific rows using SELECT with the FOR
UPDATE clause, but not to update the table.
Prohibited Operations: A share row exclusive table lock held by a transaction prevents other transactions from obtaining row exclusive table locks and modifying the same table. A share row exclusive table lock also prohibits other transactions from obtaining share, share row exclusive, and exclusive table locks, which prevents other transactions from executing the following statements:
LOCK TABLE table IN SHARE MODE; LOCK TABLE table IN SHARE ROW EXCLUSIVE MODE; LOCK TABLE table IN ROW EXCLUSIVE MODE; LOCK TABLE table IN EXCLUSIVE MODE;
能否给个例子? |
|