S
sddzlm
Unregistered / Unconfirmed
GUEST, unregistred user!
select distinct a.frulestwo
from t_opernet_log a right join t_opernet_log b
on cast(b.FRegTime as datetime )>= cast(a.FRegTime as datetime ) - interval 10 MINUTE
and cast(b.FRegTime as datetime )<= cast(a.FRegTime as datetime ) + interval 10 MINUTE
and a.FServerMAC = b.FServerMAC
where a.FRulesTwo ='haiy_87@hotmail.com'
表t_opernet_log 中有100000条记录 查询太慢了,哪位老师帮忙看一下语句时不是有问题
from t_opernet_log a right join t_opernet_log b
on cast(b.FRegTime as datetime )>= cast(a.FRegTime as datetime ) - interval 10 MINUTE
and cast(b.FRegTime as datetime )<= cast(a.FRegTime as datetime ) + interval 10 MINUTE
and a.FServerMAC = b.FServerMAC
where a.FRulesTwo ='haiy_87@hotmail.com'
表t_opernet_log 中有100000条记录 查询太慢了,哪位老师帮忙看一下语句时不是有问题