Date and Time Type

A SQL type representing a date, time, timestamp, or interval.

What is Date and Time Type in a relational database?

Date and Time Type — A SQL type representing a date, time, timestamp, or interval.

CREATE TABLE appointment (
    starts_at TIMESTAMP NOT NULL
);

Level: Apprentice · More Database terms at this level

Updated