type
INTERVAL
PostgreSQL intervals represent months, days and smaller time units separately. A calendar month is not a fixed number of seconds. Example target: PostgreSQL 17. Run in a disposable database; examples need no existing tables.
Formal Syntax & Structure
sql syntaxsql
INTERVAL [fields] [(p)]Working Example
Example Snippetsql
SELECT CAST((DATE '2024-01-01' + INTERVAL '1 month') AS DATE)::text;