// data type reference

TIMESTAMP (without time zone)

This is the workhorse datetime: a calendar date plus a clock time, with no time zone attached. Each engine names it differently, and SQL Server hijacks the word entirely.

Missing in
None of the five
Gotchas
5 listed

Engine by engine

Date plus time, zone-free. PostgreSQL calls it TIMESTAMP (8 bytes, microseconds), MySQL DATETIME (5 to 8 bytes, no conversion), SQL Server DATETIME2, Oracle TIMESTAMP, SQLite stores text.

TIMESTAMP (without time zone) in SQL Server, PostgreSQL, MySQL, SQLite and Oracle: type name, storage and notes
Motor Tipo Almacenamiento Notas
SQL Server DATETIME2 6 to 8 bytes DATETIME2(p) has 100-nanosecond precision; 6 bytes at p 0-2, 7 at p 3-4, 8 at p 5-7. In SQL Server the word 'timestamp' means rowversion, not a datetime.
PostgreSQL TIMESTAMP 8 bytes Timestamp without time zone; microsecond precision, range 4713 BC to 294276 AD.
MySQL DATETIME 5 to 8 bytes DATETIME(fsp) is 5 bytes plus 0-3 fractional bytes; range 1000-01-01 to 9999-12-31 with no time-zone conversion.
SQLite TEXT variable No native type. ISO-8601 text like '2026-02-14 09:30:00' sorts correctly and feeds the datetime() functions.
Oracle TIMESTAMP 7 to 11 bytes TIMESTAMP(p) adds up to 9 fractional-second digits on top of the 7-byte DATE layout.

Gotchas

Where the engines disagree. These tend to surface as bugs during a migration or a port.

  1. In SQL Server, TIMESTAMP is a deprecated synonym for rowversion: an 8-byte binary counter that changes on every row update. Writing CREATE TABLE (t timestamp) does not create a datetime column.
  2. PostgreSQL's timestamp stores no zone, so it cannot say which instant '2026-11-01 01:30' was in New York, where that wall-clock time happened twice. Arithmetic on it ignores DST entirely.
  3. MySQL has both DATETIME and TIMESTAMP with different behavior: DATETIME stores the wall clock untouched, TIMESTAMP converts from the session zone to UTC on the way in and back out.
  4. SQLite comparisons work by text ordering, which is only correct while every value is the same ISO-8601 shape; mixing '2026-02-14' with '2026-02-14 09:30:00' breaks ordering.
  5. Oracle's TIMESTAMP still has no zone, same as its DATE; the zone-aware choices are TIMESTAMP WITH TIME ZONE and WITH LOCAL TIME ZONE.

Common questions

What is the difference between TIMESTAMP and DATETIME?

In MySQL they are different types: DATETIME stores the wall clock as written (5 to 8 bytes, 1000-9999), while TIMESTAMP converts to UTC for storage (4 bytes, 1970-2038). In SQL Server, DATETIME is the legacy 3.33 ms type and 'timestamp' means rowversion.

Which engine type matches PostgreSQL's timestamp?

SQL Server DATETIME2, MySQL DATETIME, Oracle TIMESTAMP. All store date plus time with no zone. SQLite has no equivalent - store ISO-8601 text.

How many bytes is a timestamp without time zone?

8 bytes in PostgreSQL, 6 to 8 for SQL Server DATETIME2 depending on precision, 5 to 8 for MySQL DATETIME, and 7 to 11 for Oracle TIMESTAMP.

// map types before you move data

Map a type to the other four engines

The free type converter maps a type from one engine to its closest equivalent in the others and says where storage, precision or behaviour differ. The desktop app does the same mapping while you edit.