0

我有列 write_date 类型为 NUMBER 的表。我发现在那一栏中保存了 Date.getTime(); 是否存在可以像 DDMMYYYY 这样返回日期的 Oracle 函数?谢谢

4

3 回答 3

2

是的。

cast(to_date('01-jan-1970','dd-mon-yyyy') + your_long/86400000 as timestamp ) ts
于 2013-04-26T14:34:22.147 回答
1

使用“ ddmmyyyy ”格式的 to_date将您的号码转换为日期。可以在链接中找到更多信息,该链接指向 Oracle 文档。

于 2013-04-26T14:40:29.360 回答
1
to_char(to_date(1970,'yyyy') + java_time/86400000, 'ddmmyyyy')
于 2013-04-26T14:53:50.787 回答