sybase锁的设定

来源:互联网 发布:天下3金坎子捏脸数据 编辑:程序博客网 时间:2024/05/09 06:19

应用程序中,常用的锁表方式为:

update table_name set f_code = f_code where(select max(f_code)from table_name)

在使用这种方式时,最好将表的锁方式改成行级锁:

 alter table table_name  lock  datarows|pagerows|allpages

原创粉丝点击