Sybase锁相关操作

查看某表上的锁:

sp_help order_header

查看数据库级别的锁:

sp_configure "lock scheme"

创建表时设置锁:

create table table_name (column_name_list) 
[lock {datarows | datapages | allpages}]

如:

create table new_publishers 
(pub_id char(4) not null,
 pub_name varchar(40) null,
 city varchar(20) null,
 state char(2) null)
lock datarows

修改表上的锁:

alter table table_name 
lock {allpages | datapages | datarows}

如:

alter table titles lock datarows

更多信息参考:

http://infocenter.sybase.com/help/index.jsp 

 

 

猜你喜欢

转载自jerval.iteye.com/blog/2285430