timestamp类型:
Oracle timestamp类型转换成日期类型

第一种方式:

select to_date(to_char(createtime,'yyyy-mm-dd'),'yyyy-mm-dd') from tablename;


Oracle timestamp类型转换成日期类型
第二种方式:在字段后面“time + 0”,就可以直接转换成date类型

select createtime+0 from tablename;


Oracle timestamp类型转换成日期类型

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
  • 2021-11-18
  • 2022-12-23
  • 2021-12-01
猜你喜欢
  • 2022-12-23
  • 2021-11-02
  • 2021-06-25
  • 2021-09-20
  • 2022-12-23
  • 2021-04-08
相关资源
相似解决方案