Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1495
  • Last Modified:

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

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
conardb
Asked:
conardb
  • 2
1 Solution
 
slightwv (䄆 Netminder) Commented:
to_char(sysdate,'Month)

Substitute sysdate with your date variable/field.
0
 
slightwv (䄆 Netminder) Commented:
>>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
 
conardbAuthor Commented:
Ok, thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now