Datetime Functions - HP Neoview SQL Reference Manual

Hide thumbs Also See for Neoview SQL:
Table of Contents

Advertisement

"SUBSTRING/SUBSTR Function" (page 471)
"TRANSLATE Function" (page 479)
"TRIM Function" (page 480)
"UCASE Function" (page 481)
"UPPER Function" (page 482)
"UPSHIFT Function" (page 483)
See the individual entry for the function.

Datetime Functions

These functions use either a datetime value expression as an argument or return a result of
datetime data type:
"ADD_MONTHS Function" (page 346)
"CONVERTTIMESTAMP Function" (page 368)
"CURRENT Function" (page 373)
"CURRENT_DATE Function" (page 374)
"CURRENT_TIME Function" (page 376)
"CURRENT_TIMESTAMP Function" (page 377)
"DATE_ADD Function" (page 379)
"DATE_PART Function (of an Interval)" (page 384)
"DATE_PART Function (of a Timestamp)" (page 385)
"DATE_SUB Function" (page 380)
"DATE_TRUNC Function" (page 386)
"DATEADD Function" (page 381)
"DATEDIFF Function" (page 382)
"DATEFORMAT Function" (page 383)
"DAY Function" (page 387)
"DAYNAME Function" (page 388)
Extracts a substring from a character string.
Translates a character string from a source character set
to a target character set.
Removes leading or trailing characters from a character
string.
Upshifts alphanumeric characters. You can also use
UPSHIFT or UPPER.
Upshifts alphanumeric characters. You can also use
UPSHIFT or UCASE.
Upshifts alphanumeric characters. You can also use UPPER
or UCASE.
Adds the integer number of months specified by
intr_expr to datetime_expr and normalizes the
result.
Converts a Julian timestamp to a TIMESTAMP value.
Returns the current timestamp. You can also use the
"CURRENT_TIMESTAMP
Returns the current date.
Returns the current time.
Returns the current timestamp. You can also use the
"CURRENT
Function".
Adds the interval specified by interval_expression
to datetime_expr.
Extracts the datetime field specified by text from the
interval value specified by interval and returns the
result as an exact numeric value.
Extracts the datetime field specified by text from the
datetime value specified by timestamp and returns the
result as an exact numeric value.
Subtracts the specified interval_expression from
datetime_expr.
Returns the date with the time portion of the day
truncated.
Adds the interval specified by datepart and num_expr
to datetime_expr.
Returns the integer value for the number of datepart
units of time between startdate and enddate.
Formats a datetime value for display purposes.
Returns an integer value in the range 1 through 31 that
represents the corresponding day of the month. You can
also use DAYOFMONTH.
Returns the name of the day of the week from a date or
timestamp expression.
Function".
Categories
339

Advertisement

Table of Contents
loading

Table of Contents