oracle时间格式化

2021/10/20 19:11:53

本文主要是介绍oracle时间格式化,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

select ca.case_no     as 案件编号,
       ca.per_name    as 报案人姓名,
       ca.per_phone   as 报案人手机号,
       ca.per_sfzh    as 报案人身份证,
       sd.dict_value1 as 所属分局,
       ca.case_desc   as 简要案情,
       to_char(ca.create_date, 'yyyy-MM-dd HH24:mi:ss') as 创建时间
  from (select *
          from T_A_CASEINFO ca
         where ca.del = '0'
           and ca.case_flag != '01049901'
           and ca.case_flag != '01049902'
           and ca.create_date between
               to_date('2021-01-01 00:00:00', 'yyyy-MM-dd HH24:mi:ss') and
               to_date('2021-09-30 23:59:59', 'yyyy-MM-dd HH24:mi:ss')) ca,
       SYS_DICT sd
 where ca.occurr_gxs = sd.dict_key


这篇关于oracle时间格式化的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!


扫一扫关注最新编程教程