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

这条语句要执行多久~解决思路

2012-03-12 
这条语句要执行多久~SQL codeupdate A set hot(select count(*) from B where idA.uid and view1000)A

这条语句要执行多久~

SQL code
update A set hot=(select count(*) from B where id=A.uid and view>1000)


A表有几十万条数据

B表有800万条左右

已经执行了两天了

[解决办法]
create index xxx on B(id,view);

热点排行