Date32

A date. Supports the date range same with Datetime64. Stored in four bytes as the number of days since 1925-01-01. Allows storing values till 2283-11-11.

Examples

Creating a table with a Date32-type column and inserting data into it:

  1. CREATE TABLE new
  2. (
  3. `timestamp` Date32,
  4. `event_id` UInt8
  5. )
  6. ENGINE = TinyLog;
  1. INSERT INTO new VALUES (4102444800, 1), ('2100-01-01', 2);
  2. SELECT * FROM new;
  1. ┌──timestamp─┬─event_id─┐
  2. 2100-01-01 1
  3. 2100-01-01 2
  4. └────────────┴──────────┘

See Also