Solved

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

Posted on 2013-01-22
3
928 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 77

Accepted Solution

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

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Working with Network Access Control Lists in Oracle 11g (part 2) Part 1: http://www.e-e.com/A_8429.html Previously, I introduced the basics of network ACL's including how to create, delete and modify entries to allow and deny access.  For many…
How to Unravel a Tricky Query Introduction If you browse through the Oracle zones or any of the other database-related zones you'll come across some complicated solutions and sometimes you'll just have to wonder how anyone came up with them.  …
This video explains at a high level about the four available data types in Oracle and how dates can be manipulated by the user to get data into and out of the database.
Via a live example, show how to take different types of Oracle backups using RMAN.

739 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