这条语句要执行多久~
- 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);
发布时间: 2012-03-12 12:45:32 作者: rapoo
这条语句要执行多久~
update A set hot=(select count(*) from B where id=A.uid and view>1000)