SwapSQL

PostgreSQL → MySQL

Convert PostgreSQL interval to MySQL

MySQL has no interval column type at all. The honest mapping is text — keeping the values readable — plus application-side parsing where you need arithmetic.

interval VARCHAR(255)

What to know

Before / after

PostgreSQL

retry_after interval DEFAULT '15 minutes'

MySQL

retry_after VARCHAR(255)
-- value: '0:15:00'

Don't convert column-by-column — convert the whole database.

Upload a dump, get back ready-to-import SQL with this mapping (and every other one) applied.

Open the PostgreSQL → MySQL converter

See the full type mapping table or all guides.