Monthname Function; Considerations For Monthname; Example Of Monthname - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

MONTHNAME Function

The MONTHNAME function converts a DATE or TIMESTAMP expression into a character literal
that is the name of the month of the year (January, February, and so on).
MONTHNAME is a Neoview SQL extension.
MONTHNAME (datetime-expression)
datetime-expression
is an expression that evaluates to a datetime value of type DATE or TIMESTAMP. See
"Datetime Value Expressions" (page

Considerations for MONTHNAME

The MONTHNAME function returns the name of the month in ISO8859-1 encoding on a Neoview
platform that has the ISO88591 or SJIS configuration. It returns the name of the month in UCS2
encoding on a Neoview platform that has the Unicode configuration. For more information on
the Neoview character set configurations, see the Neoview Character Sets Administrator's Guide.

Example of MONTHNAME

Return a character literal that is the month of the year from the START_DATE column in the
PROJECT table:
SELECT start_date, ship_timestamp, MONTHNAME(start_date)
FROM persnl.project
WHERE projcode = 1000;
Start/Date
----------
2008-04-10
424
SQL Functions and Expressions
Time/Shipped
--------------------------
2008-04-21 08:15:00.000000
257).
(EXPR)
---------
April

Advertisement

Table of Contents
loading

Table of Contents