如何在Oracle中以其他格式显示日期 [英] How to display date in a different format in oracle
本文介绍了如何在Oracle中以其他格式显示日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个带有日期字段的表.默认情况下,select max(date) from table;
以'dd-mmm-yy'格式返回日期.如何以"MM/DD/YYYY"格式选择日期,而不更改表的结构或字段的格式.
I have a table with a date field. By default, select max(date) from table;
returns the date in 'dd-mmm-yy' format. How do I select the date in 'MM/DD/YYYY' format, without changing the table 's structure or the field's format.
谢谢, Supraja
Thanks, Supraja
推荐答案
select to_char(max(date), 'MM/DD/YYYY') from table;
这篇关于如何在Oracle中以其他格式显示日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文