sql调优方法: (1)not in子查询优化 尽量避免子查询select * from a where id not in(select id from b); select * from a where not exists(select id from b WHERE id ='100') 建议使用表连接: select * from a left join b on a.id=b.id WHERE b.id='100'…
待优化语句如下 select a.code as code, a.m_code as m_code,a.stktype as f_stype,a.e_year as e_year, b.sname as sname,a.c_date as c_date,to_char(sysdate,'YYYYMMDD') as createtime, to_char(sysdate,'YYYYMMDD') as updatetime, (,'YYYYMMDD') and a.c_date and t.e_ye…