Oracle timestamp类型转换成日期类型

timestamp类型:

第一种方式:

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



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

select createtime+0 from tablename;


原文地址:https://www.cnblogs.com/xmm2017/p/13943857.html