+ -
当前位置:首页 → 问答吧 → ibatis关于执行select ~ for update的问题

ibatis关于执行select ~ for update的问题

时间:2011-08-10

来源:互联网

ibatis我们使用的是2.3,spring使用的是2.0的.如果我们在dao层执行:int result = getSqlMapClientTemplate().update("select * from table1 for update");
  执行上面的语句后,如果执行成功,则result = -1,现在我想知道是的"select * from table1 for update"具体锁定了多少行,但好像ibatis没法满足这个需要!
  有没有什么办法可以得到select ~ for update具体锁住了多少行?

作者: fycghy0803   发布时间: 2011-08-10

select * from Table1 for update 是把所有的表都锁点,锁定表的所有行,只能读不能写

作者: lyhmy   发布时间: 2011-08-10

热门下载

更多