• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1356
  • 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

Featured Post

Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

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