date转为timstamp
date转为timstam可以函数to_timestamp的方式来转化:

SELECT to_timestamp('2018-06-19 12:10:10.1','yyyy-mm-dd hh24:mi:ss.ff')
FROM dual;
ORACLE中date和timestamp的相互转化


timestamp转化为date
1, timestamp+0
select Systimestamp+0 FROM DUAL;
ORACLE中date和timestamp的相互转化


2, to_char的方式
Select to_char(Systimestamp,'yyyymmdd') From dual;
ORACLE中date和timestamp的相互转化


3,cast转化
 Select Cast(Systimestamp As Date) From dual;
ORACLE中date和timestamp的相互转化

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-11-19
  • 2021-11-04
  • 2021-08-17
  • 2021-09-29
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-08
  • 2022-12-23
  • 2021-12-22
  • 2022-02-23
  • 2021-05-23
相关资源
相似解决方案