Use of the temporal data type in sql is rare. The INTERVAL is very special. Unfortunately it is rarely present in the RDBMS.
Its definition is done using the following syntax:
Code:
INTERVAL TO precision_min [precision_max]
precision_min and precision_max which can take values:
Code:
(YEAR | MONTH | DAY | HOUR | MINUTE | SECOND)
with the following additional condition: precision_max can only be a temporary measure finer than precision_min.
Example:
Code:
DAYS INTERVAL DAY
QUARTER INTERVAL MONTH TO DAY
TASK INTERVAL HOUR TO SECOND
DUREE_FILM INTERVAL MINUTE
Bookmarks