${if(len(start_date)==0,""," and rs.count_date >= '"+start_date+"'||' 00:00:00'")}
${if(len(end_date)==0,""," and rs.count_date <= '"+end_date+"'||' 23:59:59'")} ${if(len(ldt_commitTimeBg)==0,""," and to_date(to_char(rdnc.commit_date,'yyyy-MM-dd'),'yyyy-MM-dd') =
to_date('"+ldt_commitTimeBg+" ', 'yyyy-mm-dd ')")} ${if(len(ldt_commitTimeBg)==0,""," and to_date(t.return_time,'YYYY-MM-DD hh24:mi:ss') >=
to_date('"+ldt_commitTimeBg+"'||' 00:00:00', 'YYYY-MM-DD hh24:mi:ss')")}
${if(len(ldt_commitTimeEd)==0,""," and to_date(t.return_time,'YYYY-MM-DD hh24:mi:ss') <=
to_date('"+ldt_commitTimeEd+"'||' 23:59:59', 'YYYY-MM-DD hh24:mi:ss')")} ${if(len(ldt_commitTimeBg)==0,""," and t.order_date>=to_date('"+ldt_commitTimeBg+"','YYYY/MM/DD')")} ${if(len(ldt_commitTimeEd)==0,""," and t.order_date<=to_date('"+ldt_commitTimeEd+"','YYYY/MM/DD')")} ${if(len(ldt_commitTimeBg)==0,""," and t.order_date>=to_date('"+ldt_commitTimeBg+"','YYYY/MM/DD')")} ${if(len(ldt_commitTimeEd)==0,""," and t.order_date<=to_date('"+ldt_commitTimeEd+"','YYYY/MM/DD')")} ${if(len(commitStartTime)==0,""," and to_date(oif.finish_time,'YYYY-MM-DD hh24:mi:ss') >=
to_date('"+commitStartTime+"'||' 00:00:00', 'YYYY-MM-DD hh24:mi:ss')")}
${if(len(commitEndTime)==0,""," and to_date(oif.finish_time,'YYYY-MM-DD hh24:mi:ss') <=
to_date('"+commitEndTime+"'||' 23:59:59', 'YYYY-MM-DD hh24:mi:ss')")} ${if(len(start_date) ==0,""," and substr(oif.commit_time,1,7) = '" +start_date +"'")} ${if(len(ldt_commitTimeBg)==0,""," and to_date(o.commit_time,'YYYY-MM-DD hh24:mi:ss') >=
to_date('"+ldt_commitTimeBg+"'||' 00:00:00', 'YYYY-MM-DD hh24:mi:ss')")}
${if(len(ldt_commitTimeEd)==0,""," and to_date(o.commit_time,'YYYY-MM-DD hh24:mi:ss') <=
to_date('"+ldt_commitTimeEd+"'||' 23:59:59', 'YYYY-MM-DD hh24:mi:ss')")} ${if(len(ldt_commitTimeBg)==0,""," and o.commit_time >= '"+ldt_commitTimeBg+"'||' 00:00:00'" )}
${if(len(ldt_commitTimeEd)==0,""," and o.commit_time <= '"+ldt_commitTimeEd+"'||' 23:59:59'" )} ${if(len(start_date)==0,""," and substr(vsms.order_commit_date,1,7) >= '"+start_date+"'")} and oit.is_delete='N'
${if(len(queryCommitTimeBg)==0,""," and o.commit_time>='"+queryCommitTimeBg+"' || ' 00:00:00'")} ${if(len(queryCommitTimeEd)==0,""," and o.commit_time<= '"+queryCommitTimeEd+"' || ' 23:59:59'")} ${if(len(ldt_commitTimeBg)==0,""," and t.order_date>=to_date('"+ldt_commitTimeBg+"','YYYY/MM/DD')")} ${if(len(ldt_commitTimeEd)==0,""," and t.order_date<=to_date('"+ldt_commitTimeEd+"','YYYY/MM/DD')")} ${if(len(ldt_commitTimeBg)==0,""," and o.commit_time >= '"+ldt_commitTimeBg+"'||' 00:00:00'" )}
${if(len(ldt_commitTimeEd)==0,""," and o.commit_time <= '"+ldt_commitTimeEd+"'||' 23:59:59'" )}

oracle之时间格式的应用的更多相关文章

  1. oracle中时间格式时候的大于号是大于和等于的意思

    oracle中时间格式时候的大于号是大于和等于的意思

  2. oracle中时间格式的转换

    1:取得当前日期是本月的第几周  select to_char(sysdate,'YYYYMMDD W HH24:MI:SS') from dual; TO_CHAR(SYSDATE,'YY') se ...

  3. 关于EJB 时间注解与oracle数据库时间格式

    EJB中Temporal是时间注解,其中TemporalType是时间注解的枚举类型其中包括 TemporalType类型,请看源码/*** Type used to indicate a speci ...

  4. Oracle 计算时间格式平均值

    select to_char((to_date('2019-07-01', 'yyyy-mm-dd') + numtodsinterval(avg(begin_time_second), 'secon ...

  5. oracle的时间

    今天发现之前从oracle导出的数据时间格式很奇怪: "ACTIVETIME","ACTIVITYID" "2018-08-10 06:08:43&q ...

  6. Oracle存储过程获取YYYY-MM-DD的时间格式

    环境:Oracle 10g,11g 问题重现:PL/SQL中命令窗口下,发现存储过程得到的时间格式不符合预期要求. SQL> select sysdate from dual; SYSDATE ...

  7. Oracle修改时间报:ORA-01830: 日期格式图片在转换整个输入字符串之前结束的解决办法

    1.错误原因: date类型不能包含秒以后的精度. 如日期:2010-01-01 20:02:20.0 解决方法:将日期秒以后的精度去除, to_date(substr(INVOICE_DATE,1, ...

  8. oracle时间格式转换问题 ORA-01810: format code appears twice--转

    今天在做报表查询的时候Oracle报错: 信息为 ORA-01810: format code appears twice 原因:由于想java一样转化时间格式,但是Oracle中是不区分大小写的,所 ...

  9. 修改oracle数据库默认时间格式

    原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://ccchencheng.blog.51cto.com/2419062/929695 ...

随机推荐

  1. Swift - 37 - 值类型和引用类型的简单理解

    //: Playground - noun: a place where people can play import UIKit // 值类型:指的是当一个变量赋值给另外一个变量的时候, 是copy ...

  2. 使用CAEmitterLayer实现下雪效果

    效果图: 代码部分: #import "ViewController.h" @interface ViewController () @end @implementation Vi ...

  3. PHP preg_match正则表达

    在php中preg_match()函数是用来执行正则表达式的一个常用的函数,下面我来给大家详细介绍preg_match使用方法. 函数用法 int preg_match_all ( string pa ...

  4. JavaScript 函数之 ------------------ 闭包

    谈到闭包,人们常常会把匿名函数和闭包混淆在一起.闭包是指由权访问另一个函数作用域中的变量的函数.创建闭包的常见方式,就是在一个函数内部创建另一个函数,仍以前面的 createComparisonFun ...

  5. CSS定位与浮动

    定位的基本思想很简单,它允许你定义元素框相对于其正常位置应该出现的位置,或者相对于父元素.另一个元素甚至浏览器窗口本身的位置.显然,这个功能非常强大,也很让人吃惊.要知道,用户代理对 CSS2 中定位 ...

  6. YesFinder - 网页文件管理系统 V2.0

    2.0版增加了模态框并重写了右键菜单插件.界面改为全中文.使用方式更加灵活. 同时,文件及目录改名更方便,直接双击名称就可改名. 这是DEMO的效果图. 1.功能上的主要改进是可以双击改文件/目录名称 ...

  7. 转载:Linux的vim三种模式

    一般模式:在Linux终端中输入“vim 文件名”就进入了一般模式,但不能输入文字. 编辑模式:在一般模式下按i就会进入编辑模式,此时就可以写程式,按Esc可回到一般模式. 命令模式:在一般模式下按: ...

  8. 使用Office2007向cnblogs.com发布文章

    步骤: 在cnblogs.com创建一个博客 在office2007中新建->博客文章->创建. 配置帐户:

  9. v9站点自定义变量

    打开 \phpcms\modules\admin\templates\site_edit.tpl.php 文件,找到最后一个 </fieldset> ,在他后面添加一下代码:<!-- ...

  10. centos 下使用sublime

    CentOS 之 Sublime text3 安装及配置(不支持中文输入) sublime text 的界面友好,自动补全功能也不错. (本来用vim+php_function.txt的形式进行补全的 ...