最近用Oracle,让我重回当初学SQLservice 的时候,天天写sql语句,现在差不多全换回去了,还是记录一下比较好

1、首先我查出来的数据是这样他的 拿这个joindate字段来举例  字段类型是timestamp类型的,

select te.* from test te

Oracle timestamp类型转换成date类型

2、把这个类型的转换为我们认识的,我加了一个字段,给他重命名了一下

select te.*,te.joindate+0 joindates from test te

Oracle timestamp类型转换成date类型

 简单好用,查完了再处理就好了,

相关文章:

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