oracle数据库创建账号Oracle当天记录的查询

Oracle当天记录的查询

 

Java代码  

<statement id="queryTestList" resultMap="Test_Map">  

    select * from(  

    select t.*,rownum rn from(  

    select   www.2cto.com    

        col1,       

        to_char(A.TestTime,'YYYY-MM-DD HH24:MI:SS') as TestTime,         

    from TestTable A where 1=1  

 oracle账号   <dynamic>  

        <isNotEmpty prepend="AND" property="col1">  

            lower(col1) like lower('%col1%')  

        </isNotEmpty>  

        <isNotEmpty prepend="AND" property="testtime1">  

            TESTTIME  

between to_date(#testtime1#,'YYYY-MM-DD HH24:MI:SS')  

        </isNotEmpty>   www.2cto.com   

        <isNotEmpty prepend="AND" property="testtime2">  

            to_date(#testtime2#,'YYYY-MM-DD HH24:MI:SS') + 1 – 1/86400  

        </isNotEmpty>  

    </dynamic>  

order by testtime desc nulls last  

    ) t where rownum&lt;=#maxResult#  

    ) where rn&gt;#firstResult#  

  </statement>  

 

 

 

作者 四书五经

此条目发表在oracle metalink账号分类目录,贴了标签。将固定链接加入收藏夹。