作者:天极玩家_136 | 来源:互联网 | 2014-07-13 17:52
Oracle当天记录的查询Java代码<statementid"queryTestList"resultMap"Test_Map">select*from(selectt.*,rownumrnfrom(selectwww.2cto.comcol1,...
Oracle当天记录的查询
select * from(
select t.*,rownum rn from(
select www.2cto.com
col1,
to_char(A.TestTime,&#39;YYYY-MM-DD HH24:MI:SS&#39;) as TestTime,
from TestTable A where 1=1
lower(col1) like lower(&#39;%col1%&#39;)
TESTTIME
between to_date(#testtime1#,&#39;YYYY-MM-DD HH24:MI:SS&#39;)
www.2cto.com
to_date(#testtime2#,&#39;YYYY-MM-DD HH24:MI:SS&#39;) + 1 - 1/86400
order by testtime desc nulls last
) t where rownum<=#maxResult#
) where rn>#firstResult#
作者 四书五经