Postgre中的 select for update 和 select for update nowait

来源:互联网 发布:软件项目管理体系ot 编辑:程序博客网 时间:2024/06/05 19:08

使用 select for update时,但数据被锁住时,

对数据进行修改操作时,会等待

 

而 使用 select for update nowait,数据被锁住时,

对数据进行修改操作时,会报数据库错误

 

相关资料

http://blog.csdn.net/liqfyiyi/article/details/7948282

 

 

原创粉丝点击