甲骨文朱利安一天 [英] Oracle Julian day of year

查看:84
本文介绍了甲骨文朱利安一天的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Oracle数据库中选择儒略日?

how can I select Julian day of year in Oracle database?

我尝试过: 从对偶中选择to_char(sysdate,'J'); 这给了我自公元前4712年1月1日以来的天数.但是我需要自1.1开始的天数.本年度的

I tried: select to_char(sysdate, 'J') from dual; Which gives me the number of days since January 1, 4712 BC. But I would need the number of days since 1.1. of current year.

推荐答案

如果选中 TO_CHAR(日期时间)文档,您将获得指向,其中包含可用格式的完整列表.我猜你想要这个:

If you check the TO_CHAR (datetime) documentation you get a link to "Format Models" with a comprehensive list of available formats. I guess you want this:

DDD一年中的哪一天(1-366)

DDD Day of year (1-366)

这篇关于甲骨文朱利安一天的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆