update 语句根据主键 更新一条记录时,用了20分钟还没完成。
如 update table_a set col_b = 1000
where col_a = ‘A’在执行过程中 ,select * from table_a where col_a = ‘A’没问题。
查询其它列都没问题。
另外恢复一个数据库备份到其它地方,进行测试,update很快完成。
搞不明白为何出现这种问题?
如 update table_a set col_b = 1000
where col_a = ‘A’在执行过程中 ,select * from table_a where col_a = ‘A’没问题。
查询其它列都没问题。
另外恢复一个数据库备份到其它地方,进行测试,update很快完成。
搞不明白为何出现这种问题?
2、进行update的时候执行select * from sys.sysprocesses where blocked<>0看看有没有阻塞
暂时查不到堵塞的情况,但是select * from sys.sysprocesses 这个语句执行的结果显示如下,这样又看不到堵塞的具体语句?就算看到了又该如何处理?1 1964 0 0x0000 0 PREEMPTIVE_XE_CALLBACKEXECUTE 0 1 764 0 0 2013-05-14 02:42:58.853 2013-05-14 02:42:58.853 0 0 background 0x0100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 RESOURCE MONITOR sa 0x0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0x0000000000000000000000000000000000000000 0 0 0