简体   繁体   中英

How can I convert a date to format “dd/mm” in oracle?

I have the query:

select date_open 
from vw_jira_jiraissues@con_jira.cit
where issue_key = 'IBA-1642'

How can I convert a date to format "dd/mm" in oracle ?

select to_char(date_open, 'dd/mm') from ...

我相信你想要

TO_CHAR(date_open, 'DD/MM')
select to_char(date_open,'dd/mm') date_open from vw_jira_jiraissues@con_jira.cit where issue_key = 'IBA-1642'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM