Interval Literal

A literal that represents a time span.

Syntax

[ @ ] [-] { quantity subtype-unit }[...] [ AGO ]

Parameters

@

Ignored

- (minus) Specifies a negative interval value.
quantity

Integer numeric constant

subtype‑unit

See Interval Subtype Units for valid values. Subtype units must be specified for year-month intervals; they are optional for day-time intervals.

AGO

Specifies a negative interval value. AGO and - (minus) are synonymous.

Notes

Examples

See Specifying Interval Input.