Solved

How can I extract a month name from a date using pl/sql

Posted on 2013-01-22
3
835 Views
Last Modified: 2013-01-22
How can I extract a month name from a date using pl/sql

I'm extracting the number for selection and would like to display the month name
0
Comment
Question by:conardb
  • 2
3 Comments
 
LVL 76

Accepted Solution

by:
slightwv (䄆 Netminder) earned 500 total points
ID: 38807385
to_char(sysdate,'Month)

Substitute sysdate with your date variable/field.
0
 
LVL 76

Expert Comment

by:slightwv (䄆 Netminder)
ID: 38807391
>>I'm extracting the number

If you just have a 'number': a Case statement would be the easiest but in SQL:
to_char(to_date(yourNumber,'MM'),'Month')
0
 

Author Comment

by:conardb
ID: 38807414
Ok, thanks
0

Featured Post

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

How to Create User-Defined Aggregates in Oracle Before we begin creating these things, what are user-defined aggregates?  They are a feature introduced in Oracle 9i that allows a developer to create his or her own functions like "SUM", "AVG", and…
I remember the day when someone asked me to create a user for an application developement. The user should be able to create views and materialized views and, so, I used the following syntax: (CODE) This way, I guessed, I would ensure that use…
Via a live example show how to connect to RMAN, make basic configuration settings changes and then take a backup of a demo database
Via a live example, show how to restore a database from backup after a simulated disk failure using RMAN.

863 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now