如何在Informix中设置行级锁定?

时间:2013-09-05 13:44:42

标签: sql locking informix

如何在Informix中设置行级锁定?

3 个答案:

答案 0 :(得分:1)

CREATE TABLE customer(customer_num serial, lname char(20)...)
   LOCK MODE ROW;

在此处阅读更多内容:Row and Key Locks

答案 1 :(得分:1)

您可以使用:

ALTER TABLE customer LOCK MODE(ROW);

(PAGE是默认值)

更多here

如果要查找表的当前锁定模式:

SELECT tablename, lockmode FROM systables

答案 2 :(得分:0)

带有连字符参数的Onstat

onstat -

Onstat Documentation