Solved

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

Posted on 2013-01-22
3
826 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.

Join & Write a Comment

Truncate is a DDL Command where as Delete is a DML Command. Both will delete data from table, but what is the difference between these below statements truncate table <table_name> ?? delete from <table_name> ?? The first command cannot be …
Introduction A previously published article on Experts Exchange ("Joins in Oracle", http://www.experts-exchange.com/Database/Oracle/A_8249-Joins-in-Oracle.html) makes a statement about "Oracle proprietary" joins and mixes the join syntax with gen…
This video shows information on the Oracle Data Dictionary, starting with the Oracle documentation, explaining the different types of Data Dictionary views available by group and permissions as well as giving examples on how to retrieve data from th…
This video shows how to configure and send email from and Oracle database using both UTL_SMTP and UTL_MAIL, as well as comparing UTL_SMTP to a manual SMTP conversation with a mail server.

759 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

17 Experts available now in Live!

Get 1:1 Help Now