您的位置:首页 > 其它

几十万的数据更新总是超时

2009-04-26 21:48 309 查看
update shop_snsn
set nclassid = '172'
where (IsNumeric(nclassid) = 0) AND (shopclass = '2') AND (adddate > '2009-04-07')

更新如此简单的,在sql2000中总是超时。。。请高手帮忙。。。

---------------------------------------------------------------------------------

select *
into #temp
from shop_snsn
WHERE (IsNumeric(nclassid) = 0) AND (shopclass = '2') AND (adddate > '2009-04-07')

update shop_snsn
SET nclassid = '172'
from shop_snsn a,#temp b
where a.聚集索引列=b.聚集索引列
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: