select e.brno, getbrname(e.brno), count(e.cstm_no)
  from hs_user_info e
 where (exists (select 1
                  from hs_err_info h
                 where error_reasonc <> ''
                   and e.cstm_no = h.cstm_no) or e.check_rst = '01')
                                 
   and exists (select t.brno
                    from itp_bctl t
                   where t.full_no = '0102' and t.state = '1' and t.brno = e.brno) group by e.brno
这个 只有 hs_err_info这个表的索引有效
其他两个表的索引失效了
为啥 and t.brno = e.brno 只要加上这个条件 itp_bctl的索引就会失效