Entering content frame

Extraction function 

An extraction function is a function that extracts parts of a date value, time value, or timestamp value or that calculates a date, time, or timestamp value.

Syntax

<extraction_function> ::=
  YEAR        ( <date_or_timestamp_expression> )
| MONTH       ( <date_or_timestamp_expression> )
| DAY         ( <date_or_timestamp_expression> )
| HOUR        ( <time_or_timestamp_expression> )
| MINUTE      ( <time_or_timestamp_expression> )
| SECOND      ( <time_or_timestamp_expression> )
| MICROSECOND ( <expression> )
| TIMESTAMP   ( <expression>[, <expression> ] )
| DATE        ( <expression> )
| TIME        ( <expression> )

date_or_timestamp_expression, time_or_timestamp_expression, expression

YEAR(t), MONTH(t), DAY(t), HOUR(t), MINUTE(t), SECOND(t), MICROSECOND(a), TIMESTAMP(a,b), DATE(a), TIME(a)

A variety of date and time formats (ISO, USA, EUR, JIS, INTERNAL) are available for processing date and time values.

Leaving content frame