我的sql语句如下: 
select       
     client_id, 
     (select count(*) from stat where errorid<>0 and client_id=client.client_id) as staterrnum, 
     (select count(*) from stat where errorid=0  and client_id=client.client_id) as statnum 
from client   
查询起来非常慢,数据也不多啊,就几万行