需要在currentDate中选择一个月 [英] Need to PICK a month in a currentDate

查看:86
本文介绍了需要在currentDate中选择一个月的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI ALL

我需要在给定的日期选择特定的月份

(例如)从给定日期2012年8月18日起,我只想获取"AUG"我该怎么办
请提供您的建议.

Rgds
Jagadesh

HI ALL

I NEED TO PICK PARTICULAR MONTH ON A GIVEN DATE

(For eg) 18-AUG-2012 from the given date i want a get only ''AUG'' How can i do that
Kindly provide YOUR SUGGESTION.

Rgds
Jagadesh

推荐答案

尝试以下操作:

Try this:

select to_char(sysdate, 'Month') from tableName


否则:


or else:

select to_char(to_date('15-11-2010', 'DD-MM-YYYY'), 'Month') from tableName



还可以查看以下内容: Oracle日期函数 [



Also have look on: Oracle Date Functions[^]


这篇关于需要在currentDate中选择一个月的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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