■ If YEAR or MONTH is requested, then expr must evaluate to an expression of data
type DATE, TIMESTAMP, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME
ZONE, or INTERVAL YEAR TO MONTH.
■ If DAY is requested, then expr must evaluate to an expression of data type DATE,
TIMESTAMP, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME ZONE, or
INTERVAL DAY TO SECOND.
■ If HOUR, MINUTE, or SECOND is requested, then expr must evaluate to an expression
of data type TIMESTAMP, TIMESTAMP WITH TIME ZONE, TIMESTAMP WITH LOCAL TIME
ZONE, or INTERVAL DAY TO SECOND. DATE is not valid here, because Oracle Database
treats it as ANSI DATE data type, which has no time fields.
■ If TIMEZONE_HOUR, TIMEZONE_MINUTE, TIMEZONE_ABBR, TIMEZONE_REGION, or
TIMEZONE_OFFSET is requested, then expr must evaluate to an expression of data
type TIMESTAMP WITH TIME ZONE or TIMESTAMP WITH LOCAL TIME ZONE
返回类型:
When you specify TIMEZONE_REGION or TIMEZONE_ABBR (abbreviation), the value
returned is a VARCHAR2 string containing the appropriate time zone region name or
abbreviation. When you specify any of the other datetime fields, the value returned is
an integer value of NUMBER data type representing the datetime value in the Gregorian
calendar.
原文:https://www.cnblogs.com/studyking/p/11726242.html