First page Back Continue Last page Image

More Functions that do the same thing

Available Units

SECOND MINUTE

HOUR DAY

MONTH YEAR

MINUTE_SECOND HOUR_MINUTE

DAY_HOUR YEAR_MONTH

HOUR_SECOND DAY_MINUTE

DAY_SECOND

EXTRACT(unit FROM date)

You can do the same thing we just looked at by using the EXTRACT command, the format is as follows:

This would be any call to the database that results in a date type variable being returned