这条语句要执行多久~解决思路
这条语句要执行多久~SQL codeupdate A set hot(select count(*) from B where idA.uid and view1000)A
这条语句要执行多久~
SQL codeupdate A set hot=(select count(*) from B where id=A.uid and view>1000)
A表有几十万条数据
B表有800万条左右
已经执行了两天了
[解决办法]create index xxx on B(id,view);