INTERVAL
INTERVAL is a SQL data type in the Data Types category. Represents a time interval (duration). Used with date arithmetic functions. The syntax is INTERVAL value unit. It returns time interval. A typical example: SELECT NOW() + INTERVAL 7 DAY; SELECT NOW() - INTERVAL 1 HOUR; -- In table definition (PostgreSQL): CREATE TABLE events (duration INTERVAL); INSERT INTO events VALUES ('2 hours 30 minutes'); A close relative is INT, which standard integer type. Range: -2147483648 to 2147483647 (signed). Use BIGINT for larger values. A close relative is VARCHAR(n), which variable-length string with a maximum length. Most common string type. Efficient for varying-length data. A close relative is TEXT, which for large text content (up to 65535 bytes in MySQL). Variants: TINYTEXT, TEXT, MEDIUMTEXT, LONGTEXT. More about this category: SQL column data types — INT, VARCHAR, TEXT, BOOLEAN, DATE, TIMESTAMP, JSON, DECIMAL. Related Data Types entries: INT, VARCHAR(n), TEXT, BOOLEAN / BOOL, DATE, TIMESTAMP / DATETIME, DECIMAL / NUMERIC, JSON.