ITeye博客

Oracle时间查询显示英文以及显示中文的例子

cserw3c · 2014-05-20 15:14 · oracle · 数据库 · Markdown

 













需要显示类似December 12,2013这种格式
select  to_char(sysdate,'Month DD,yyyy','NLS_DATE_LANGUAGE = American') as t  from DUAL
 
 
需要显示类似2013年5月13日这种格式
select  to_char(sysdate,'yyyy') || '年' ||to_char(sysdate,'mm')||'月' ||  to_char(sysdate,'dd')||'日'  as t from DUAL t;

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。