日期:2014-05-19  浏览次数:20458 次

看到一个sql
update   table   set   t_id=t_id   where   1=2  
说是将表锁住   ,谁能解释一下,谢谢

------解决方案--------------------
where 1=2条件为假,都没更新哪有锁.
使用sp_who查看下.
------解决方案--------------------
http://community.csdn.net/Expert/topic/5509/5509908.xml?temp=.5213739
------解决方案--------------------
表再更新时,表都被系统自动锁定的!