试试下面语句:SELECT SID, SSJSID, RQ, SJ FROM JING_SS Where to_char(rq,’yyyyMMdd’) between 最先日期 and 竣事日期 and not to_char(sj,’hh24mmss’)竣事时间and to_char(rq,’yyyyMMdd’)=竣事日期 and ssjsid in (select sid fromcom_dw connect by prior sid=fid start with sid=单元编号) Order by sid;
ORACLE时间段查询优化的问题?
试试下面语句:SELECT SID, SSJSID, RQ, SJ FROM JING_SS Where to…
本文来自网络,不代表折纸SEO立场,转载请注明出处:https://www.30th-feb.com/3766