DB2 for update 没有加排他锁?
select * from table_name where id='xx' for update (id是主键,具有主键索引)
经测试:如上语句并没有给行加U(update)锁,而是S(共享)锁
select * from table_name where id='xx'
select * from table_name where id='xx' for update
select * from table_name where id='xx' for update with CS
如上3条语句效果一样,给查询结果加的都是S锁,1个事务查询到结果,另一个事务仍可以对其查询修改
select * from table_name where id='xx' for update with RR
select * from table_name where id='xx' for update with RS
如上两条,对查询结果加的是U锁,1个事务查询结果未提交,令一个事务无法对其update操作
参考:http://blog.chinaunix.net/uid-20313874-id-299469.html
相关推荐
DB2® 9 for z/OS® is an exciting new version, with many improvements in performance and little regression. DB2 V9 improves availability and security, as well as adds greatly to SQL and XML functions....
Toad for DB2是一种专业化、图形化的DB2开发和管理工具,用来帮助DBA和开发人员有效地完成他们的工作。它集成了模式浏览、SQL编程、开发和调试、DBA管理、SQL语句优化等多种功能。功能强大、低负载、简单易用,访问...
关于DB2 HA FOR LINUX的操作
DB2 for linux安装文档
Enterprise PeopleTools 8.49 Installation for DB2 UDB for Linux, UNIX, and Windows
JDBC Driver For DB2
Toad for DB2 使用指南,介绍了Toad for DB2的使用和注意事项。
Toad for DB2 4.7 Trial正式版+注册机+连接配置方式 toad_for_db2_keygen + Quest_central_for_DB2_v4.8.1 1,Toad For DB2 安装破解安装,连接使用方法.txt 2,连接配置.docx toad_for_db2_keygen + Quest_central...
Today’s business leaders agree that effectively managing and leveraging information to make decisions has ...advanced products in the industry is IBM DB2® 9 for Linux®, UNIX®, and Windows® (LUW).
db2数据库连接工具for Mac,亲测可用
DB2 Runtime Client Installer for Windows 32 bit 中文版 绝对好使!正版好用!
Toad for DB2的激活文件,只需将key文件拷贝至安装目录下,重启DB2后,所有功能都会开放!版本不限
DB2 for Zos(英文版的)
DB2 9 for Linux,UNIX,Windows数据库管理认证指南。IBM出品的官方工具书,全面细致,无论使用DB2是考DB2认证指南都是必备的学习资料
DB2 9 for Linux, UNIX, and Windows DBA Guide, Reference, and Exam Prep (6th Edition) - [IBM Press]
本资源为Toad for DB2 freeware 免费版本,不需要激活。使用之前务必确保本机环境已经安装了 db2 server client,否则使用本软件时提示找不到db2 client 环境。需要db2 server client 可以查看我的其他资源 db2 ...
db2 sql select update delete where
toad for db2 7.1 license,亲测可用,不限版本,可解锁所有功能! ToadforDB2 是比较好用的图形界面的DB2管理工具,分为免费版和商业版本。在新版的 ToadforDB2_Freeware_6.x 进行安装时,会提示报错“Toad did not ...
Toad for Db2 安装、基本使用,适合初学者使用
如果你还没有尝试过在Linux上安装db2,那么这本手册是一本带你入门的不二选择。