-
+
Data Types
DAY TO MINUTE
DAY TO SECOND
HOUR TO MINUTE
+ HOUR TO SECOND
MINUTE TO SECOND
- Input falling outside the specified set of fields is silently discarded.
Note that if both fields and
- precision are specified, the
+ p are specified, the
fields must include SECOND>,
since the precision applies only to the seconds.
When writing an interval constant with a fields>
- specification, or when assigning to an interval column that was defined
- with a fields> specification, the interpretation of
+ specification, or when assigning a string to an interval column that was
+ defined with a fields> specification, the interpretation of
unmarked quantities depends on the fields>. For
example INTERVAL '1' YEAR> is read as 1 year, whereas
- INTERVAL '1'> means 1 second.
+ INTERVAL '1'> means 1 second. Also, field values
+ to the right> of the least significant field allowed by the
+ fields> specification are silently discarded. For
+ example, writing INTERVAL '1 day 2:03:04' HOUR TO MINUTE>
+ results in dropping the seconds field, but not the day field.