1. 日期转换为字符

  select to_char(sysdate,'yyyy-MM-dd HH24:mi:ss') from dual;

2. 字符转换为日期

  select to_date('2003-10-17 21:15:37','yyyy-mm-dd hh24:mi:ss') from dual

相关文章:

  • 2021-12-28
  • 2021-06-19
  • 2021-12-05
  • 2022-02-10
  • 2022-01-23
  • 2022-12-23
  • 2021-12-01
  • 2022-01-22
猜你喜欢
  • 2022-01-21
  • 2022-12-23
  • 2021-12-28
  • 2021-12-05
  • 2021-12-28
相关资源
相似解决方案