首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

看到一个sql,该如何解决

2012-01-24 
看到一个sqlupdatetablesett_idt_idwhere12说是将表锁住,谁能解释一下,谢谢[解决办法]where 12条件为假

看到一个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
[解决办法]
表再更新时,表都被系统自动锁定的!

热点排行